[llvm-commits] CVS: llvm/lib/Target/TargetInstrInfo.cpp

Evan Cheng evan.cheng at apple.com
Wed May 23 00:21:35 PDT 2007



Changes in directory llvm/lib/Target:

TargetInstrInfo.cpp updated: 1.30 -> 1.31
---
Log message:

Rename a parameter.

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

 TargetInstrInfo.cpp |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)


Index: llvm/lib/Target/TargetInstrInfo.cpp
diff -u llvm/lib/Target/TargetInstrInfo.cpp:1.30 llvm/lib/Target/TargetInstrInfo.cpp:1.31
--- llvm/lib/Target/TargetInstrInfo.cpp:1.30	Wed May 16 19:11:35 2007
+++ llvm/lib/Target/TargetInstrInfo.cpp	Wed May 23 02:21:11 2007
@@ -61,7 +61,7 @@
 }
 
 bool TargetInstrInfo::PredicateInstruction(MachineInstr *MI,
-                                      std::vector<MachineOperand> &Cond) const {
+                                      std::vector<MachineOperand> &Pred) const {
   bool MadeChange = false;
   const TargetInstrDescriptor *TID = MI->getInstrDescriptor();
   if (TID->Flags & M_PREDICABLE) {
@@ -69,13 +69,13 @@
       if ((TID->OpInfo[i].Flags & M_PREDICATE_OPERAND)) {
         MachineOperand &MO = MI->getOperand(i);
         if (MO.isReg()) {
-          MO.setReg(Cond[j].getReg());
+          MO.setReg(Pred[j].getReg());
           MadeChange = true;
         } else if (MO.isImm()) {
-          MO.setImm(Cond[j].getImmedValue());
+          MO.setImm(Pred[j].getImmedValue());
           MadeChange = true;
         } else if (MO.isMBB()) {
-          MO.setMachineBasicBlock(Cond[j].getMachineBasicBlock());
+          MO.setMachineBasicBlock(Pred[j].getMachineBasicBlock());
           MadeChange = true;
         }
         ++j;






More information about the llvm-commits mailing list