{"id":24780328,"url":"https://github.com/antonlydike/sympy2llvm","last_synced_at":"2026-04-25T22:33:20.735Z","repository":{"id":273749923,"uuid":"920756514","full_name":"AntonLydike/sympy2llvm","owner":"AntonLydike","description":"Convert sympy to SSA form","archived":false,"fork":false,"pushed_at":"2025-01-28T16:57:44.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-28T17:39:21.836Z","etag":null,"topics":["llvm","mlir","sympy"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AntonLydike.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-22T18:08:13.000Z","updated_at":"2025-01-28T16:57:47.000Z","dependencies_parsed_at":"2025-01-28T17:39:26.680Z","dependency_job_id":null,"html_url":"https://github.com/AntonLydike/sympy2llvm","commit_stats":null,"previous_names":["antonlydike/sympy2xdsl","antonlydike/sympy2llvm"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntonLydike%2Fsympy2llvm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntonLydike%2Fsympy2llvm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntonLydike%2Fsympy2llvm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntonLydike%2Fsympy2llvm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AntonLydike","download_url":"https://codeload.github.com/AntonLydike/sympy2llvm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245207187,"owners_count":20577638,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["llvm","mlir","sympy"],"created_at":"2025-01-29T10:21:30.603Z","updated_at":"2026-04-25T22:33:20.683Z","avatar_url":"https://github.com/AntonLydike.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sympy2llvm - Convert sympy expressions to SSA form\n\nThis projects provides a simple tool to convert sympy expressions to SSA form.\n\n## Usage:\n\nEither from command line:\n\n```\nsympy2llvm [-i input_file] {llvm,mlir} fun_name argument_type ...\n```\n\nThis reads a sympy expression either from stdin or the provided file, and prints the desired output (either MLIRs \nllvm dialect, or llvmir directly).\n\n\nOr programmatically:\n\n```py\nfrom sympy2llvm.llvm import ConvertLLVM, LLVMType\nimport sympy\n\nx,y = sympy.symbols(\"x y\")\n\nconv = ConvertLLVM(x/y, \"div\", (LLVMType.i32, LLVMType.i32), int_t=LLVMType.i32)\nllvmir = conv.convert()\n\nprint(llvmir)\n# prints:\n# define i32 @div(i32 %a, i32 %b) {\n#   %1 = sdiv i32 %a, %b\n#   ret i32 %1\n# }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonlydike%2Fsympy2llvm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantonlydike%2Fsympy2llvm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonlydike%2Fsympy2llvm/lists"}