aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2014-03-15 00:18:39 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-03-15 00:18:39 +0000
commitd3e2a43715e865c6f55f748652a9b29624ea1aab (patch)
tree343d7ce8767a0a37430083e6b4a567ebb30c19f4 /include
parent130045bafb1899ab3ba3a4eab679a7df08321796 (diff)
parent8aa5ce8cbaa58d14493eb694f06c8a0fde23c509 (diff)
downloadexternal_llvm-d3e2a43715e865c6f55f748652a9b29624ea1aab.tar.gz
external_llvm-d3e2a43715e865c6f55f748652a9b29624ea1aab.tar.bz2
external_llvm-d3e2a43715e865c6f55f748652a9b29624ea1aab.zip
Merge "Make LLVM build on AArch64."
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 9d47ffdc3f..cd005be499 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