AArch64: enable MCJIT and tests now that everything passes.
authorTim Northover <Tim.Northover@arm.com>
Sat, 4 May 2013 20:14:22 +0000 (20:14 +0000)
committerTim Northover <Tim.Northover@arm.com>
Sat, 4 May 2013 20:14:22 +0000 (20:14 +0000)
This removes dire warnings about AArch64 being unsupported and enables
the tests when appropriate on this platform.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181135 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AArch64/TargetInfo/AArch64TargetInfo.cpp
test/ExecutionEngine/MCJIT/lit.local.cfg

index b8099cb26b0f78da1d332953f95e423215593439..fc706a4cd42db3a0819ef71e9d0188b676d0abf5 100644 (file)
@@ -19,6 +19,6 @@ using namespace llvm;
 Target llvm::TheAArch64Target;
 
 extern "C" void LLVMInitializeAArch64TargetInfo() {
-  RegisterTarget<Triple::aarch64>
+    RegisterTarget<Triple::aarch64, /*HasJIT=*/true>
     X(TheAArch64Target, "aarch64", "AArch64");
 }
index 363028671c9f9bf01c72d00f8da509ef2233ccaa..2dbc222bba0aaf7753e69e3694daa8dfb7ad6c8f 100644 (file)
@@ -8,13 +8,14 @@ def getRoot(config):
 root = getRoot(config)
 
 targets = set(root.targets_to_build.split())
-if ('X86' in targets) | ('ARM' in targets) | ('Mips' in targets) | \
-   ('PowerPC' in targets):
+if ('X86' in targets) | ('AArch64' in targets) | ('ARM' in targets) | \
+   ('Mips' in targets) | ('PowerPC' in targets):
     config.unsupported = False
 else:
     config.unsupported = True
 
-if root.host_arch not in ['i386', 'x86', 'x86_64', 'ARM', 'Mips', 'PowerPC']:
+if root.host_arch not in ['i386', 'x86', 'x86_64',
+                          'AArch64', 'ARM', 'Mips', 'PowerPC']:
     config.unsupported = True
 
 if 'i386-apple-darwin'  in root.target_triple: