[llvm-commits] CVS: llvm/lib/CodeGen/MachineInstr.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun Nov 17 16:15:01 PST 2002


Changes in directory llvm/lib/CodeGen:

MachineInstr.cpp updated: 1.63 -> 1.64

---
Log message:

Remove only uses of markDef/markDefAndUse methods


---
Diffs of the changes:

Index: llvm/lib/CodeGen/MachineInstr.cpp
diff -u llvm/lib/CodeGen/MachineInstr.cpp:1.63 llvm/lib/CodeGen/MachineInstr.cpp:1.64
--- llvm/lib/CodeGen/MachineInstr.cpp:1.63	Tue Oct 29 20:02:37 2002
+++ llvm/lib/CodeGen/MachineInstr.cpp	Sun Nov 17 16:14:08 2002
@@ -98,12 +98,13 @@
   operands[i].opType = opType;
   operands[i].value = V;
   operands[i].regNum = -1;
-  operands[i].flags = 0;
 
-  if (isdef || TargetInstrDescriptors[opCode].resultPos == (int) i)
-    operands[i].markDef();
   if (isDefAndUse)
-    operands[i].markDefAndUse();
+    operands[i].flags = MachineOperand::DEFUSEFLAG;
+  else if (isdef || TargetInstrDescriptors[opCode].resultPos == (int) i)
+    operands[i].flags = MachineOperand::DEFFLAG;
+  else
+    operands[i].flags = 0;
 }
 
 void
@@ -131,10 +132,12 @@
   operands[i].opType = MachineOperand::MO_MachineRegister;
   operands[i].value = NULL;
   operands[i].regNum = regNum;
-  operands[i].flags = 0;
 
   if (isdef || TargetInstrDescriptors[opCode].resultPos == (int) i)
-    operands[i].markDef();
+    operands[i].flags = MachineOperand::DEFFLAG;
+  else
+    operands[i].flags = 0;
+
   insertUsedReg(regNum);
 }
 





More information about the llvm-commits mailing list