diff options
author | Artem Belevich <tra@google.com> | 2015-04-21 22:14:13 +0000 |
---|---|---|
committer | Artem Belevich <tra@google.com> | 2015-04-21 22:14:13 +0000 |
commit | 4e192df778a96fedbee93799af64cd7a0d2fa0bb (patch) | |
tree | 8ee7f2e11214a07105c596850af5d3b15edc51a4 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | e3476572f3e5ec3bd6ab878e332852da6c79eb98 (diff) | |
download | llvm-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/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions