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

Attach the datalayout before optimizing the LLVM module #4761

Merged
merged 2 commits into from
Sep 19, 2024

Conversation

giuseros
Copy link
Contributor

We should always set the datalayout when we run the optimization pipeline on the LLVM IR module.

@@ -258,6 +258,7 @@ def make_llir(src, metadata, options):
paths = [path for (name, path) in options.extern_libs if amd.need_extern_lib(llvm_mod, name)]
llvm.link_extern_libs(llvm_mod, paths)

llvm.attach_datalayout(llvm_mod, amd.TARGET_TRIPLE, options.arch, '')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to attach right after we get the llvm module at L237 like the target triple?

@antiagainst antiagainst merged commit ad0cdfb into triton-lang:main Sep 19, 2024
7 checks passed
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.

3 participants