aboutsummaryrefslogtreecommitdiffstats
path: root/device/include
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2014-10-15 14:05:57 -0700
committerTim Murray <timmurray@google.com>2014-10-15 14:17:40 -0700
commitb86aaa733ce2042447857baf096ccc58b4ec430a (patch)
treef69cd1965db595d49911d17b81147ceb6eea12ed /device/include
parentf8e021ce4621688f8f57bf98302cba23f5d7e0f1 (diff)
downloadexternal_llvm-b86aaa733ce2042447857baf096ccc58b4ec430a.zip
external_llvm-b86aaa733ce2042447857baf096ccc58b4ec430a.tar.gz
external_llvm-b86aaa733ce2042447857baf096ccc58b4ec430a.tar.bz2
add ARM codegen for x86 LLVM if specified
bug 17765171 Change-Id: Id1135f5804d2738c7de5c264079e0a61d161f997
Diffstat (limited to 'device/include')
-rw-r--r--device/include/llvm/Config/AsmParsers.def5
-rw-r--r--device/include/llvm/Config/AsmPrinters.def5
-rw-r--r--device/include/llvm/Config/Disassemblers.def5
-rw-r--r--device/include/llvm/Config/Targets.def5
4 files changed, 20 insertions, 0 deletions
diff --git a/device/include/llvm/Config/AsmParsers.def b/device/include/llvm/Config/AsmParsers.def
index b2cfbe2..a0cdc19 100644
--- a/device/include/llvm/Config/AsmParsers.def
+++ b/device/include/llvm/Config/AsmParsers.def
@@ -30,6 +30,11 @@
LLVM_ASM_PARSER(Mips)
#elif defined(__i386__) || defined(__x86_64__)
LLVM_ASM_PARSER(X86)
+
+#if defined(FORCE_BUILD_ARM)
+ LLVM_ASM_PARSER(ARM)
+#endif
+
#elif defined(__aarch64__)
LLVM_ASM_PARSER(ARM)
LLVM_ASM_PARSER(AArch64)
diff --git a/device/include/llvm/Config/AsmPrinters.def b/device/include/llvm/Config/AsmPrinters.def
index 96e2f56..103c2a5 100644
--- a/device/include/llvm/Config/AsmPrinters.def
+++ b/device/include/llvm/Config/AsmPrinters.def
@@ -30,6 +30,11 @@
LLVM_ASM_PRINTER(Mips)
#elif defined(__i386__) || defined(__x86_64__)
LLVM_ASM_PRINTER(X86)
+
+#if defined(FORCE_BUILD_ARM)
+ LLVM_ASM_PRINTER(ARM)
+#endif
+
#elif defined(__aarch64__)
LLVM_ASM_PRINTER(ARM)
LLVM_ASM_PRINTER(AArch64)
diff --git a/device/include/llvm/Config/Disassemblers.def b/device/include/llvm/Config/Disassemblers.def
index 0761902..2ec382e 100644
--- a/device/include/llvm/Config/Disassemblers.def
+++ b/device/include/llvm/Config/Disassemblers.def
@@ -30,6 +30,11 @@
LLVM_DISASSEMBLER(Mips)
#elif defined(__i386__) || defined(__x86_64__)
LLVM_DISASSEMBLER(X86)
+
+#if defined(FORCE_BUILD_ARM)
+ LLVM_DISASSEMBLER(ARM)
+#endif
+
#elif defined(__aarch64__)
LLVM_DISASSEMBLER(ARM)
LLVM_DISASSEMBLER(AArch64)
diff --git a/device/include/llvm/Config/Targets.def b/device/include/llvm/Config/Targets.def
index 014ef14..1b67f95 100644
--- a/device/include/llvm/Config/Targets.def
+++ b/device/include/llvm/Config/Targets.def
@@ -29,6 +29,11 @@
LLVM_TARGET(Mips)
#elif defined(__i386__) || defined(__x86_64__)
LLVM_TARGET(X86)
+
+#if defined(FORCE_BUILD_ARM)
+ LLVM_TARGET(ARM)
+#endif
+
#elif defined(__aarch64__)
LLVM_TARGET(ARM)
LLVM_TARGET(AArch64)