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

Replace LLVM.version() with Base.libllvm_version #69

Merged
merged 2 commits into from
Apr 23, 2024
Merged

Replace LLVM.version() with Base.libllvm_version #69

merged 2 commits into from
Apr 23, 2024

Conversation

mofeing
Copy link
Member

@mofeing mofeing commented Apr 23, 2024

Currently, we only use LLVM.jl for conditionally loading code based on the LLVM version the current Julia session is using. LLVM.version() is actually just returning Base.libllvm_version so we can remove the LLVM dependency.

https://github.com/maleadt/LLVM.jl/blob/6bf0d9775d2bea129ba3edba895ce9f963710271/src/version.jl#L5

https://github.com/maleadt/LLVM.jl/blob/6bf0d9775d2bea129ba3edba895ce9f963710271/src/LLVM.jl#L19

@vchuravy
Copy link
Collaborator

Fine by me. I think originally I was planning on converting to LLVM IR and then using custom optimization passes + OrcJIT for execution, but that's probably not necessary currently.

@mofeing mofeing merged commit 701fc82 into JuliaLLVM:main Apr 23, 2024
4 of 5 checks passed
@mofeing mofeing deleted the ssr/remove-llvm-dep branch April 23, 2024 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants