Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove LLVMExtCreateMCJITCompilerForModule from llvm_ext.cc #13966

Conversation

HertzDevil
Copy link
Contributor

@HertzDevil HertzDevil commented Nov 9, 2023

Resolves part of #13946.

There is no need to disable GlobalISel immediately upon JIT compiler creation, because the target machine can be retrieved afterwards via the LLVM C API, and with it we could use the much shorter LLVMExtTargetMachineEnableGlobalIsel instead (which will be available in LLVM 18 too). LLVMExtCreateMCJITCompilerForModule doesn't do anything extra other than updating the target machine's option (twice).

src/llvm/jit_compiler.cr Outdated Show resolved Hide resolved
@straight-shoota straight-shoota added this to the 1.11.0 milestone Nov 9, 2023
@straight-shoota straight-shoota merged commit 4001a79 into crystal-lang:master Nov 10, 2023
54 of 55 checks passed
Blacksmoke16 pushed a commit to Blacksmoke16/crystal that referenced this pull request Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants