Open japaric opened 8 years ago
The llvm IR of nvptx targets should make use of the addrspace attributes to mark to which memory region a pointer points to.
addrspace
The example in the LLVM's guide to PTX uses the addrspace(1) (global memory) on pointers that are used as kernel parameters.
addrspace(1)
More info about address spaces here
We should take a look at the LLVM IR that other cuda frontends (like clang) generate.
clang
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.