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

Use the addrspace attribute when generating llvm-ir #6

Open
japaric opened this issue Jun 18, 2016 · 0 comments
Open

Use the addrspace attribute when generating llvm-ir #6

japaric opened this issue Jun 18, 2016 · 0 comments
Labels

Comments

@japaric
Copy link

japaric commented Jun 18, 2016

The llvm IR of nvptx targets should make use of the addrspace attributes to mark to which memory region a pointer points to.

The example in the LLVM's guide to PTX uses the addrspace(1) (global memory) on pointers that are used as kernel parameters.

More info about address spaces here

We should take a look at the LLVM IR that other cuda frontends (like clang) generate.

@japaric japaric added the PTX label Jun 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant