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

Add target attributes to LLVM IR Module getting optimized #1103

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yashssh
Copy link
Contributor

@yashssh yashssh commented Nov 26, 2024

LLVM IR that is passed down from Numba frontend to LLVM backend does not contain some basic target specific attributes(target-cpu, target-features) which is added by Clang frontend (when compiling C++) or either by tools such as opt and llc when optimizing the LLVM-IR directly with the help of cli flags.

I have mimicked the flow of opt optimizer from llvm, which adds these details to the IR module before running the optimization pipeline.

This change shouldn't affect any functionality and correctness, it's just to add more details to the IR involved and to make it more more verbose and portable across tools.

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