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
This commit is contained in:
Chris Lattner 2004-02-28 19:55:16 +00:00
parent 3da5117334
commit d62276a66e
2 changed files with 7 additions and 2 deletions

View File

@ -9,6 +9,7 @@
LEVEL = ../..
TOOLNAME = llc
USEDLIBS = cwriter \
sparcv8 \
sparcv9 \
x86 \
powerpc \

View File

@ -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;