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 a data layout specification #3

Open
dzagieboylo opened this issue Aug 22, 2018 · 1 comment
Open

Add a data layout specification #3

dzagieboylo opened this issue Aug 22, 2018 · 1 comment

Comments

@dzagieboylo
Copy link
Collaborator

From @gharrma on February 3, 2017 6:29

"Make sure that your Modules contain both a data layout specification and target triple. Without these pieces, non of the target specific optimization will be enabled. This can have a major effect on the generated code quality." -- LLVM Performance Tips

Copied from original issue: gharrma/polyllvm#16

@dzagieboylo
Copy link
Collaborator Author

From @gharrma on February 23, 2017 6:25

Unfortunately it seems that there's no automatic way to get the LLVM target triple and data layout of the host machine. Even the front end for Rust appears to specify data layouts manually for all supported targets.

Our best option may be to do something similar (for the most common platforms), then allow users to pass in their own target triple and data layout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant