[PATCH] [NVPTX] kernel pointer arguments point to the global address space
Jingyue Wu
jingyue at google.com
Sun May 31 22:22:17 PDT 2015
Hi eliben, jholewinski, meheff,
With this patch, NVPTXLowerKernelArgs converts a kernel pointer argument to a
pointer in the global address space. This change, along with
NVPTXFavorNonGenericAddrSpaces, allows the NVPTX backend to emit ld.global.*
and st.global.* for accessing kernel pointer arguments.
Minor changes:
1. refactor: extract function convertToPointerInAddrSpace
2. fix a bug in the test case in bug21465.ll
http://reviews.llvm.org/D10154
Files:
lib/Target/NVPTX/CMakeLists.txt
lib/Target/NVPTX/NVPTX.h
lib/Target/NVPTX/NVPTXLowerKernelArgs.cpp
lib/Target/NVPTX/NVPTXLowerStructArgs.cpp
lib/Target/NVPTX/NVPTXTargetMachine.cpp
test/CodeGen/NVPTX/bug21465.ll
test/CodeGen/NVPTX/lower-kernel-ptr-arg.ll
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10154.26872.patch
Type: text/x-patch
Size: 17041 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150601/520d80a4/attachment.bin>
More information about the llvm-commits
mailing list