From 8aa5ce8cbaa58d14493eb694f06c8a0fde23c509 Mon Sep 17 00:00:00 2001 From: Tim Murray Date: Fri, 7 Mar 2014 13:15:57 -0800 Subject: Make LLVM build on AArch64. bug 13343378 Change-Id: I4152d2437a144645fa0b5a425b7bfdcb3a2a5594 --- include/llvm/Config/llvm-platform-config.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'include') 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 -- cgit v1.1