Skip to content

Remove llvm::InitializeAll* calls (#468) #572

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

Open
wants to merge 1 commit into
base: ocl-open-160
Choose a base branch
from

Conversation

wenju-he
Copy link
Contributor

@wenju-he wenju-he commented Aug 12, 2025

opencl-clang only uses clang libraries to generate frontend IR and explicitly disables llvm optimizations. In addition, opencl-clang doesn't parse/print assembly.
Therefore, there is no need to initialize llvm target machines, target MCs, asm printers and asm parsers

This PR removes opencl-clang's dependency on some llvm libraries.

(cherry picked from commit 44edebc)

jira: CMPLRLLVM-69301

opencl-clang only uses clang libraries to generate frontend IR and
explicitly disables llvm optimizations. In addition, opencl-clang
doesn't parse/print assembly.
Therefore, there is no need to initialize llvm target machines, target
MCs, asm printers and asm parsers

This PR removes opencl-clang's dependency on some llvm libraries.

(cherry picked from commit 44edebc)
@wenju-he wenju-he requested a review from cdai2 August 12, 2025 02:37
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.

1 participant