aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2014-03-07 13:15:57 -0800
committerTim Murray <timmurray@google.com>2014-03-14 17:13:27 -0700
commit8aa5ce8cbaa58d14493eb694f06c8a0fde23c509 (patch)
tree343d7ce8767a0a37430083e6b4a567ebb30c19f4 /include
parent130045bafb1899ab3ba3a4eab679a7df08321796 (diff)
downloadexternal_llvm-8aa5ce8cbaa58d14493eb694f06c8a0fde23c509.zip
external_llvm-8aa5ce8cbaa58d14493eb694f06c8a0fde23c509.tar.gz
external_llvm-8aa5ce8cbaa58d14493eb694f06c8a0fde23c509.tar.bz2
Make LLVM build on AArch64.
bug 13343378 Change-Id: I4152d2437a144645fa0b5a425b7bfdcb3a2a5594
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Config/llvm-platform-config.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/llvm/Config/llvm-platform-config.h b/include/llvm/Config/llvm-platform-config.h
index 9d47ffd..cd005be 100644
--- a/include/llvm/Config/llvm-platform-config.h
+++ b/include/llvm/Config/llvm-platform-config.h
@@ -89,6 +89,31 @@
/* LLVM name for the native target MC init function, if available */
#define LLVM_NATIVE_TARGETMC LLVMInitializeMipsTargetMC
+#elif defined(__aarch64__)
+
+/* LLVM architecture name for the native architecture, if available */
+#define LLVM_NATIVE_ARCH AArch64
+
+/* Host triple LLVM will be executed on */
+#define LLVM_HOST_TRIPLE "aarch64-none-linux-gnu"
+
+/* LLVM name for the native AsmParser init function, if available */
+#define LLVM_NATIVE_ASMPARSER LLVMInitializeAArch64AsmParser
+
+/* LLVM name for the native AsmPrinter init function, if available */
+#define LLVM_NATIVE_ASMPRINTER LLVMInitializeAArch64AsmPrinter
+
+/* LLVM name for the native Disassembler init function, if available */
+#define LLVM_NATIVE_DISASSEMBLER LLVMInitializeAArch64Disassembler
+
+/* LLVM name for the native Target init function, if available */
+#define LLVM_NATIVE_TARGET LLVMInitializeAArch64Target
+
+/* LLVM name for the native TargetInfo init function, if available */
+#define LLVM_NATIVE_TARGETINFO LLVMInitializeAArch64TargetInfo
+
+/* LLVM name for the native target MC init function, if available */
+#define LLVM_NATIVE_TARGETMC LLVMInitializeAArch64TargetMC
#else