Great renaming part II: Sparc --> SparcV9 (also includes command-line options and...
authorBrian Gaeke <gaeke@uiuc.edu>
Wed, 25 Feb 2004 19:08:12 +0000 (19:08 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Wed, 25 Feb 2004 19:08:12 +0000 (19:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11827 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetMachineImpls.h
lib/ExecutionEngine/JIT/TargetSelect.cpp
lib/Target/Makefile
lib/Target/SparcV9/SparcV9StackSlots.cpp
tools/llc/Makefile
tools/llc/llc.cpp
tools/lli/Makefile
tools/llvm-db/Makefile

index f1445d168baafed9b33dea9e6b9141947a3ee978..5003f4da98c888ad5e5808db75b48718b30210c6 100644 (file)
@@ -29,12 +29,12 @@ namespace llvm {
   TargetMachine *allocateCTargetMachine(const Module &M,
                                         IntrinsicLowering *IL = 0);
 
-  // allocateSparcTargetMachine - Allocate and return a subclass of
+  // allocateSparcV9TargetMachine - Allocate and return a subclass of
   // TargetMachine that implements the Sparc backend.  This takes ownership of
   // the IntrinsicLowering pointer, deleting it when the target machine is
   // destroyed.
   //
-  TargetMachine *allocateSparcTargetMachine(const Module &M,
+  TargetMachine *allocateSparcV9TargetMachine(const Module &M,
                                             IntrinsicLowering *IL = 0);
   
   // allocateX86TargetMachine - Allocate and return a subclass of TargetMachine
index 0540862870377dd47d0d15445e89b5dd7a8f20d6..fd96e5ef67815b881c35c4f9f7dd85b4b560de4b 100644 (file)
@@ -28,7 +28,7 @@ using namespace llvm;
 #endif
 
 namespace {
-  enum ArchName { x86, Sparc };
+  enum ArchName { x86, SparcV9 };
 
 #ifndef NO_JITS_ENABLED
   cl::opt<ArchName>
@@ -38,13 +38,13 @@ namespace {
                   clEnumVal(x86, "  IA-32 (Pentium and above)"),
 #endif
 #ifdef ENABLE_SPARC_JIT
-                  clEnumValN(Sparc, "sparc", "  Sparc-V9"),
+                  clEnumValN(Sparc, "sparcv9", "  Sparc-V9"),
 #endif
                   0),
 #if defined(ENABLE_X86_JIT)
   cl::init(x86)
 #elif defined(ENABLE_SPARC_JIT)
-  cl::init(Sparc)
+  cl::init(SparcV9)
 #endif
        );
 #endif /* NO_JITS_ENABLED */
@@ -69,8 +69,8 @@ ExecutionEngine *JIT::create(ModuleProvider *MP, IntrinsicLowering *IL) {
     break;
 #endif
 #ifdef ENABLE_SPARC_JIT
-  case Sparc:
-    TargetMachineAllocator = allocateSparcTargetMachine;
+  case SparcV9:
+    TargetMachineAllocator = allocateSparcV9TargetMachine;
     break;
 #endif
   default:
index 89ed3e975d7973bd33af14ae5e62c3a3b25cfa27..f4a6908fa1cbc63e6446f06ca1d6b6c1d0d386bc 100644 (file)
@@ -7,7 +7,7 @@
 # 
 ##===----------------------------------------------------------------------===##
 LEVEL = ../..
-DIRS = CBackend X86 Sparc PowerPC
+DIRS = CBackend X86 SparcV9 PowerPC
 LIBRARYNAME = target
 BUILD_ARCHIVE = 1
 
index 5fd0ba192713223559173c6f425aa600607a2fd9..e11effc4b13aebf95782722a7630a313673bfb7d 100644 (file)
@@ -13,7 +13,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "SparcInternals.h"
+#include "SparcV9Internals.h"
 #include "llvm/Constant.h"
 #include "llvm/DerivedTypes.h"
 #include "llvm/Function.h"
index c018032f911d7ca6587b824bacf96194af32d35f..fb0d06080db5fed89756691d2f94a4f42a498518 100644 (file)
@@ -9,16 +9,16 @@
 LEVEL = ../..
 TOOLNAME = llc
 USEDLIBS = cwriter \
-           sparc \
+           sparcv9 \
            x86 \
            powerpc \
            selectiondag \
-           regalloc \
+           sparcv9regalloc \
            sched \
-           select \
+           sparcv9select \
            codegen \
            target.a \
-           livevar \
+           sparcv9livevar \
            ipa.a   \
            transforms.a \
            scalaropts.a \
index 3176b4ce7432c51d076dc0d0f586706260d3733a..d7c9faeb2616fac2eb0067fc73b05bcf20e8be07 100644 (file)
@@ -37,12 +37,12 @@ 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, Sparc, PowerPC, CBackend };
+enum ArchName { noarch, X86, 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(Sparc,    "sparc",   "  SPARC V9"),
+                clEnumValN(SparcV9,  "sparcv9", "  SPARC V9"),
                 clEnumValN(PowerPC,  "powerpc", "  PowerPC"),
                 clEnumValN(CBackend, "c",       "  C backend"),
                0),
@@ -90,8 +90,8 @@ int main(int argc, char **argv) {
   case X86:
     TargetMachineAllocator = allocateX86TargetMachine;
     break;
-  case Sparc:
-    TargetMachineAllocator = allocateSparcTargetMachine;
+  case SparcV9:
+    TargetMachineAllocator = allocateSparcV9TargetMachine;
     break;
   case PowerPC:
     TargetMachineAllocator = allocatePowerPCTargetMachine;
@@ -109,14 +109,14 @@ int main(int argc, char **argv) {
       TargetMachineAllocator = allocatePowerPCTargetMachine;
     } else if (mod.getEndianness()  == Module::BigEndian &&
                mod.getPointerSize() == Module::Pointer64) { 
-      TargetMachineAllocator = allocateSparcTargetMachine;
+      TargetMachineAllocator = allocateSparcV9TargetMachine;
     } else {
       // If the module is target independent, favor a target which matches the
       // current build system.
 #if defined(i386) || defined(__i386__) || defined(__x86__)
       TargetMachineAllocator = allocateX86TargetMachine;
 #elif defined(sparc) || defined(__sparc__) || defined(__sparcv9)
-      TargetMachineAllocator = allocateSparcTargetMachine;
+      TargetMachineAllocator = allocateSparcV9TargetMachine;
 #elif defined(__POWERPC__) || defined(__ppc__) || defined(__APPLE__)
       TargetMachineAllocator = allocatePowerPCTargetMachine;
 #else
index 72cb3d6f82f3dc4f9504ca42f605bf8c05086874..617518c7c1d06c62efdae13aa578bbe9be471550 100644 (file)
@@ -40,10 +40,10 @@ endif
 # What the Sparc JIT requires
 ifdef ENABLE_SPARC_JIT
   CPPFLAGS += -DENABLE_SPARC_JIT
-  JITLIBS  += sparc 
-  ARCHLIBS += sched livevar instrument.a profpaths \
-              bcwriter transforms.a ipo.a ipa.a datastructure.a regalloc \
-              select
+  JITLIBS  += sparcv9
+  ARCHLIBS += sched sparcv9livevar instrument.a profpaths \
+              bcwriter transforms.a ipo.a ipa.a datastructure.a \
+              sparcv9regalloc sparcv9select
 endif
 
 USEDLIBS = lli-interpreter $(JITLIBS) $(ARCHLIBS) scalaropts analysis.a \
index e261f81c60c2efe7822ee2a904c1250c1a324778..c7e4850e6a55b72a85e5df584a7d13ee7b1c70da 100644 (file)
@@ -41,10 +41,10 @@ endif
 # What the Sparc JIT requires
 ifdef ENABLE_SPARC_JIT
   CPPFLAGS += -DENABLE_SPARC_JIT
-  JITLIBS  += sparc 
-  ARCHLIBS += sched livevar instrument.a profpaths \
-              bcwriter transforms.a ipo.a ipa.a datastructure.a regalloc \
-              select
+  JITLIBS  += sparcv9
+  ARCHLIBS += sched sparcv9livevar instrument.a profpaths \
+              bcwriter transforms.a ipo.a ipa.a datastructure.a \
+              sparcv9regalloc sparcv9select
 endif
 
 USEDLIBS = lli-interpreter $(JITLIBS) $(ARCHLIBS) scalaropts analysis.a \