[llvm-commits] [release_12] CVS: llvm/tools/llc/Makefile llc.cpp

John Criswell criswell at cs.uiuc.edu
Thu Mar 18 11:33:03 PST 2004


Changes in directory llvm/tools/llc:

Makefile updated: 1.50 -> 1.50.2.1
llc.cpp updated: 1.96 -> 1.96.2.1

---
Log message:

Removed PowerPC code generation options from llc.  The PowerPC code
generator isn't even at an experimental stage (if I understand the comments
correctly).



---
Diffs of the changes:  (+1 -11)

Index: llvm/tools/llc/Makefile
diff -u llvm/tools/llc/Makefile:1.50 llvm/tools/llc/Makefile:1.50.2.1
--- llvm/tools/llc/Makefile:1.50	Thu Mar 11 12:16:33 2004
+++ llvm/tools/llc/Makefile	Thu Mar 18 11:32:36 2004
@@ -11,7 +11,6 @@
 USEDLIBS = cwriter \
            sparcv9 \
            x86 \
-           powerpc \
            selectiondag \
            sparcv9regalloc \
            sched \


Index: llvm/tools/llc/llc.cpp
diff -u llvm/tools/llc/llc.cpp:1.96 llvm/tools/llc/llc.cpp:1.96.2.1
--- llvm/tools/llc/llc.cpp:1.96	Tue Mar 16 15:47:20 2004
+++ llvm/tools/llc/llc.cpp	Thu Mar 18 11:32:36 2004
@@ -39,13 +39,12 @@
 
 static cl::opt<bool> Force("f", cl::desc("Overwrite output files"));
 
-enum ArchName { noarch, X86, SparcV9, PowerPC, CBackend };
+enum ArchName { noarch, X86, SparcV9, 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(SparcV9,  "sparcv9", "  SPARC V9"),
-                clEnumValN(PowerPC,  "powerpc", "  PowerPC (experimental)"),
                 clEnumValN(CBackend, "c",       "  C backend"),
 		0),
      cl::init(noarch));
@@ -95,9 +94,6 @@
   case SparcV9:
     TargetMachineAllocator = allocateSparcV9TargetMachine;
     break;
-  case PowerPC:
-    TargetMachineAllocator = allocatePowerPCTargetMachine;
-    break;
   default:
     // Decide what the default target machine should be, by looking at
     // the module. This heuristic (ILP32, LE -> IA32; LP64, BE ->
@@ -106,9 +102,6 @@
     if (mod.getEndianness()  == Module::LittleEndian &&
         mod.getPointerSize() == Module::Pointer32) { 
       TargetMachineAllocator = allocateX86TargetMachine;
-    } else if (mod.getEndianness() == Module::BigEndian &&
-        mod.getPointerSize() == Module::Pointer32) { 
-      TargetMachineAllocator = allocatePowerPCTargetMachine;
     } else if (mod.getEndianness()  == Module::BigEndian &&
                mod.getPointerSize() == Module::Pointer64) { 
       TargetMachineAllocator = allocateSparcV9TargetMachine;
@@ -119,8 +112,6 @@
       TargetMachineAllocator = allocateX86TargetMachine;
 #elif defined(sparc) || defined(__sparc__) || defined(__sparcv9)
       TargetMachineAllocator = allocateSparcV9TargetMachine;
-#elif defined(__POWERPC__) || defined(__ppc__) || defined(__APPLE__)
-      TargetMachineAllocator = allocatePowerPCTargetMachine;
 #else
       std::cerr << argv[0] << ": module does not specify a target to use.  "
                 << "You must use the -march option.  If no native target is "





More information about the llvm-commits mailing list