aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-28 19:55:16 +0000
committerChris Lattner <sabre@nondot.org>2004-02-28 19:55:16 +0000
commitd62276a66e7678fbbc1e7ac3c45b55de2647b4de (patch)
tree2c57fc7044adc4d57c1201e267ea948ca34a0788 /tools
parent3da51173349e2ec6d26228d4d2f59c91fccc39b0 (diff)
downloadexternal_llvm-d62276a66e7678fbbc1e7ac3c45b55de2647b4de.zip
external_llvm-d62276a66e7678fbbc1e7ac3c45b55de2647b4de.tar.gz
external_llvm-d62276a66e7678fbbc1e7ac3c45b55de2647b4de.tar.bz2
Add a hook to run with the V8 target, though it doesn't currently work. Also
mark the PPC backend as experimental git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11962 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/llc/Makefile1
-rw-r--r--tools/llc/llc.cpp8
2 files changed, 7 insertions, 2 deletions
diff --git a/tools/llc/Makefile b/tools/llc/Makefile
index fb0d060..0f77156 100644
--- a/tools/llc/Makefile
+++ b/tools/llc/Makefile
@@ -9,6 +9,7 @@
LEVEL = ../..
TOOLNAME = llc
USEDLIBS = cwriter \
+ sparcv8 \
sparcv9 \
x86 \
powerpc \
diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp
index d7c9fae..7e800f1 100644
--- a/tools/llc/llc.cpp
+++ b/tools/llc/llc.cpp
@@ -37,13 +37,14 @@ OutputFilename("o", cl::desc("Output filename"), cl::value_desc("filename"));
static cl::opt<bool> Force("f", cl::desc("Overwrite output files"));
-enum ArchName { noarch, X86, SparcV9, PowerPC, CBackend };
+enum ArchName { noarch, X86, SparcV8, SparcV9, PowerPC, CBackend };
static cl::opt<ArchName>
Arch("march", cl::desc("Architecture to generate assembly for:"), cl::Prefix,
cl::values(clEnumValN(X86, "x86", " IA-32 (Pentium and above)"),
+ clEnumValN(SparcV8, "sparcv8", " SPARC V8 (experimental)"),
clEnumValN(SparcV9, "sparcv9", " SPARC V9"),
- clEnumValN(PowerPC, "powerpc", " PowerPC"),
+ clEnumValN(PowerPC, "powerpc", " PowerPC (experimental)"),
clEnumValN(CBackend, "c", " C backend"),
0),
cl::init(noarch));
@@ -93,6 +94,9 @@ int main(int argc, char **argv) {
case SparcV9:
TargetMachineAllocator = allocateSparcV9TargetMachine;
break;
+ case SparcV8:
+ TargetMachineAllocator = allocateSparcV8TargetMachine;
+ break;
case PowerPC:
TargetMachineAllocator = allocatePowerPCTargetMachine;
break;