[PATCH] [NVPTX] kernel pointer arguments point to the global address space

Jingyue Wu jingyue at google.com
Wed Jun 3 20:23:43 PDT 2015


================
Comment at: lib/Target/NVPTX/NVPTXLowerKernelArgs.cpp:37
@@ +36,3 @@
+//      %input2 = bitcast float* %input to i8*
+//      %cvt = call i8 addrspace(1)* @llvm.nvvm.ptr.gen.to.global.p1i8.p0i8(i8* %input2)
+//      %input3 = bitcast i8 addrspace(1)* %cvt to float addrspace(1)*
----------------
jingyue wrote:
> jholewinski wrote:
> > The address space conversion intrinsics are deprecated in favor of the new addrspacecast instruction (I need to document that in IntrinsicsNVVM.td).
> Thank you for pointing this out. So, do you think we should emit addrspacecast here too instead of gen.to.global and gen.to.param? 
The updated version emits `addrspacecast` instead of `llvm.nvvm.ptr.gen.to.*`.

http://reviews.llvm.org/D10154

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list