[llvm-commits] CVS: llvm/lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp

Brian Gaeke gaeke at cs.uiuc.edu
Tue Jul 27 10:43:34 PDT 2004



Changes in directory llvm/lib/Target/SparcV9/InstrSelection:

InstrSelectionSupport.cpp updated: 1.69 -> 1.70

---
Log message:

Convert many of the virtual TargetInstrInfo methods used as helper
functions in SparcV9InstrSelection and SparcV9PreSelection into regular
old global functions.  As it happens, none of them really have anything
to do with TargetInstrInfo.


---
Diffs of the changes:  (+2 -4)

Index: llvm/lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp
diff -u llvm/lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp:1.69 llvm/lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp:1.70
--- llvm/lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp:1.69	Sat Jul 17 19:38:32 2004
+++ llvm/lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp	Tue Jul 27 12:43:23 2004
@@ -41,8 +41,7 @@
   MachineCodeForInstruction &mcfi = MachineCodeForInstruction::get(vmInstr);
   TmpInstruction* tmpReg = new TmpInstruction(mcfi, opValue);
   
-  target.getInstrInfo()->CreateCodeToLoadConst(target, F, opValue, tmpReg,
-                                              loadConstVec, mcfi);
+  CreateCodeToLoadConst(target, F, opValue, tmpReg, loadConstVec, mcfi);
   
   // Record the mapping from the tmp VM instruction to machine instruction.
   // Do this for all machine instructions that were not mapped to any
@@ -96,8 +95,7 @@
   // TargetInstrInfo::ConvertConstantToIntType() does the right conversions:
   bool isValidConstant;
   uint64_t valueToUse =
-    target.getInstrInfo()->ConvertConstantToIntType(target, val, val->getType(),
-                                                   isValidConstant);
+    ConvertConstantToIntType(target, val, val->getType(), isValidConstant);
   if (! isValidConstant)
     return MachineOperand::MO_VirtualRegister;
 





More information about the llvm-commits mailing list