aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode
diff options
context:
space:
mode:
authorArtem Belevich <tra@google.com>2015-04-21 22:14:13 +0000
committerArtem Belevich <tra@google.com>2015-04-21 22:14:13 +0000
commit4e192df778a96fedbee93799af64cd7a0d2fa0bb (patch)
tree8ee7f2e11214a07105c596850af5d3b15edc51a4 /llvm/lib/Bitcode
parente3476572f3e5ec3bd6ab878e332852da6c79eb98 (diff)
downloadllvm-4e192df778a96fedbee93799af64cd7a0d2fa0bb.zip
llvm-4e192df778a96fedbee93799af64cd7a0d2fa0bb.tar.gz
llvm-4e192df778a96fedbee93799af64cd7a0d2fa0bb.tar.bz2
[cuda] Added support for CUDA built-in variables.
Added cuda_builtin_vars.h which implements built-in CUDA variables using __declattr(property). Fields of built-in variables (except for warpSize) are implemented using __declattr(property) which replaces read/write of a member field with a call to a getter/setter member function, in this case with appropriate NVPTX builtin. Added a test case to check diagnostics on attempt to construct or improperly access a built-in variable. Differential Revision: http://reviews.llvm.org/D9064 llvm-svn: 235448
Diffstat (limited to 'llvm/lib/Bitcode')
0 files changed, 0 insertions, 0 deletions