diff options
author | Artem Belevich <tra@google.com> | 2015-08-19 20:48:20 +0000 |
---|---|---|
committer | Artem Belevich <tra@google.com> | 2015-08-19 20:48:20 +0000 |
commit | 2063b03d43303f7fd8612160027c405b9e284966 (patch) | |
tree | 35e80a1f5c48521e3259f5079a0a4292de9a4390 /include/clang/Basic/Builtins.h | |
parent | de8283c542e50b92c87d2dc5307144e603521ebd (diff) |
[CUDA] Add appropriate host/device attribute to builtins.
Differential Revision: http://reviews.llvm.org/D12122
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@245496 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/Builtins.h')
-rw-r--r-- | include/clang/Basic/Builtins.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/clang/Basic/Builtins.h b/include/clang/Basic/Builtins.h index 554143d6be..87e2ac7079 100644 --- a/include/clang/Basic/Builtins.h +++ b/include/clang/Basic/Builtins.h @@ -81,6 +81,11 @@ public: return getRecord(ID).Type; } + /// \brief Return true if this function is a target-specific builtin + bool isTSBuiltin(unsigned ID) const { + return ID >= Builtin::FirstTSBuiltin; + } + /// \brief Return true if this function has no side effects and doesn't /// read memory. bool isConst(unsigned ID) const { |