{"id":17119263,"url":"https://github.com/xhacker/bitcast-legalization-pass","last_synced_at":"2025-03-24T02:19:35.036Z","repository":{"id":143097595,"uuid":"54249266","full_name":"xhacker/bitcast-legalization-pass","owner":"xhacker","description":"An LLVM pass for legalizing bitcast from illegal types","archived":false,"fork":false,"pushed_at":"2016-04-06T00:35:38.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-29T08:24:31.701Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"LLVM","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/xhacker.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":"2016-03-19T05:34:00.000Z","updated_at":"2016-03-25T00:07:33.000Z","dependencies_parsed_at":"2023-05-02T03:12:57.520Z","dependency_job_id":null,"html_url":"https://github.com/xhacker/bitcast-legalization-pass","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xhacker%2Fbitcast-legalization-pass","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xhacker%2Fbitcast-legalization-pass/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xhacker%2Fbitcast-legalization-pass/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xhacker%2Fbitcast-legalization-pass/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xhacker","download_url":"https://codeload.github.com/xhacker/bitcast-legalization-pass/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245195961,"owners_count":20575938,"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":[],"created_at":"2024-10-14T17:56:45.931Z","updated_at":"2025-03-24T02:19:35.014Z","avatar_url":"https://github.com/xhacker.png","language":"LLVM","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bitcast Legalization Pass\n\n## Motivation\n\nIf LLVM IR code uses bitcasts from vectors with illegal element types, the resulting assembly or machine code generated by the backend could be incorrect. This pass implements a simple workaround to this problem. For more information, see [I2Result Demo](http://parabix.costar.sfu.ca/wiki/I2Result).\n\n## Build and Run Using `cmake`, `make`, and `opt`\n\n```sh\nmkdir build\ncd build\ncmake -G \"Unix Makefiles\" ..\nmake\ncd ..\nopt -S -load build/BitcastLegalization/libBitcastLegalization.so -bitcastlegalization \u003c tests/i1.ll\n```\n\n## Build and Run Using Xcode and `opt`\n\n```sh\nmkdir xcode\ncd xcode\ncmake -G \"Xcode\" ..\n# Open Xcode and build\ncd ..\nopt -S -load xcode/BitcastLegalization/Debug/libBitcastLegalization.so -bitcastlegalization \u003c tests/i1.ll\n```\n\n## Run Tests\n\nThe following runs a test that shows that the pass avoids the problem mentioned in the page linked above.\n\n```sh\ncd tests\n./run.sh pr2\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxhacker%2Fbitcast-legalization-pass","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxhacker%2Fbitcast-legalization-pass","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxhacker%2Fbitcast-legalization-pass/lists"}