summaryrefslogtreecommitdiff
path: root/include/clang/Basic/TargetBuiltins.h
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-03-29 15:09:45 +0000
committerTim Northover <tnorthover@apple.com>2014-03-29 15:09:45 +0000
commit7e0e8ef787107d4f646254130625d83c67a617bf (patch)
tree8ff59170f29defadd4d7bea0156c174fd1619a4d /include/clang/Basic/TargetBuiltins.h
parent6614bf2dd1f7e09bbef38b243fd42f7182897908 (diff)
downloadclang-7e0e8ef787107d4f646254130625d83c67a617bf.tar.gz
clang-7e0e8ef787107d4f646254130625d83c67a617bf.tar.bz2
clang-7e0e8ef787107d4f646254130625d83c67a617bf.tar.xz
ARM64: initial clang support commit.
This adds Clang support for the ARM64 backend. There are definitely still some rough edges, so please bring up any issues you see with this patch. As with the LLVM commit though, we think it'll be more useful for merging with AArch64 from within the tree. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205100 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/TargetBuiltins.h')
-rw-r--r--include/clang/Basic/TargetBuiltins.h23
1 files changed, 16 insertions, 7 deletions
diff --git a/include/clang/Basic/TargetBuiltins.h b/include/clang/Basic/TargetBuiltins.h
index 4dc00f93d1..e6cc9ab544 100644
--- a/include/clang/Basic/TargetBuiltins.h
+++ b/include/clang/Basic/TargetBuiltins.h
@@ -22,14 +22,12 @@
namespace clang {
namespace NEON {
- enum {
- LastTIBuiltin = clang::Builtin::FirstTSBuiltin-1,
+ enum {
+ LastTIBuiltin = clang::Builtin::FirstTSBuiltin - 1,
#define BUILTIN(ID, TYPE, ATTRS) BI##ID,
-#define GET_NEON_BUILTINS
-#include "clang/Basic/arm_neon.inc"
-#undef GET_NEON_BUILTINS
- FirstTSBuiltin
- };
+#include "clang/Basic/BuiltinsNEON.def"
+ FirstTSBuiltin
+ };
}
/// \brief AArch64 builtins
@@ -53,6 +51,17 @@ namespace clang {
};
}
+ /// \brief ARM64 builtins
+ namespace ARM64 {
+ enum {
+ LastTIBuiltin = clang::Builtin::FirstTSBuiltin - 1,
+ LastNEONBuiltin = NEON::FirstTSBuiltin - 1,
+ #define BUILTIN(ID, TYPE, ATTRS) BI##ID,
+ #include "clang/Basic/BuiltinsARM64.def"
+ LastTSBuiltin
+ };
+ }
+
/// \brief PPC builtins
namespace PPC {
enum {