[PATCH] D11505: [NVPTX] convert pointers in byval kernel arguments to global

Jingyue Wu jingyue at google.com
Sat Jul 25 16:50:44 PDT 2015


jingyue created this revision.
jingyue added a reviewer: jholewinski.
jingyue added a subscriber: llvm-commits.
Herald added a subscriber: jholewinski.

For example, in

struct S {
  int *x;
  int *y;
};
__global__ void foo(S s) {
  int *b = s.y;
  // use b
}

"b" is guaranteed to point to global. NVPTX should emit ld.global/st.global for
accessing "b".

http://reviews.llvm.org/D11505

Files:
  lib/Target/NVPTX/NVPTXLowerKernelArgs.cpp
  test/CodeGen/NVPTX/lower-kernel-ptr-arg.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11505.30639.patch
Type: text/x-patch
Size: 6595 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150725/76cc3636/attachment.bin>


More information about the llvm-commits mailing list