1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

Add a hook to run with the V8 target, though it doesn't currently work. Also

mark the PPC backend as experimental

llvm-svn: 11962
This commit is contained in:
Chris Lattner 2004-02-28 19:55:16 +00:00
parent 38ae1362de
commit ab9a9c4119
2 changed files with 7 additions and 2 deletions

View File

@ -9,6 +9,7 @@
LEVEL = ../.. LEVEL = ../..
TOOLNAME = llc TOOLNAME = llc
USEDLIBS = cwriter \ USEDLIBS = cwriter \
sparcv8 \
sparcv9 \ sparcv9 \
x86 \ x86 \
powerpc \ 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")); 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> static cl::opt<ArchName>
Arch("march", cl::desc("Architecture to generate assembly for:"), cl::Prefix, Arch("march", cl::desc("Architecture to generate assembly for:"), cl::Prefix,
cl::values(clEnumValN(X86, "x86", " IA-32 (Pentium and above)"), cl::values(clEnumValN(X86, "x86", " IA-32 (Pentium and above)"),
clEnumValN(SparcV8, "sparcv8", " SPARC V8 (experimental)"),
clEnumValN(SparcV9, "sparcv9", " SPARC V9"), clEnumValN(SparcV9, "sparcv9", " SPARC V9"),
clEnumValN(PowerPC, "powerpc", " PowerPC"), clEnumValN(PowerPC, "powerpc", " PowerPC (experimental)"),
clEnumValN(CBackend, "c", " C backend"), clEnumValN(CBackend, "c", " C backend"),
0), 0),
cl::init(noarch)); cl::init(noarch));
@ -93,6 +94,9 @@ int main(int argc, char **argv) {
case SparcV9: case SparcV9:
TargetMachineAllocator = allocateSparcV9TargetMachine; TargetMachineAllocator = allocateSparcV9TargetMachine;
break; break;
case SparcV8:
TargetMachineAllocator = allocateSparcV8TargetMachine;
break;
case PowerPC: case PowerPC:
TargetMachineAllocator = allocatePowerPCTargetMachine; TargetMachineAllocator = allocatePowerPCTargetMachine;
break; break;