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

Chris Lattner lattner at cs.uiuc.edu
Mon Oct 28 15:18:04 PST 2002


Changes in directory llvm/lib/CodeGen:

MachineInstr.cpp updated: 1.54 -> 1.55

---
Log message:

Remove all traces of the "Opcode Mask" field in the MachineInstr class


---
Diffs of the changes:

Index: llvm/lib/CodeGen/MachineInstr.cpp
diff -u llvm/lib/CodeGen/MachineInstr.cpp:1.54 llvm/lib/CodeGen/MachineInstr.cpp:1.55
--- llvm/lib/CodeGen/MachineInstr.cpp:1.54	Mon Oct 28 15:02:40 2002
+++ llvm/lib/CodeGen/MachineInstr.cpp	Mon Oct 28 15:17:19 2002
@@ -10,18 +10,18 @@
 
 // Constructor for instructions with fixed #operands (nearly all)
 MachineInstr::MachineInstr(MachineOpCode _opCode)
-  : opCode(_opCode), opCodeMask(0),
+  : opCode(_opCode),
     operands(TargetInstrDescriptors[_opCode].numOperands, MachineOperand()) {
   assert(TargetInstrDescriptors[_opCode].numOperands >= 0);
 }
 
 // Constructor for instructions with variable #operands
 MachineInstr::MachineInstr(MachineOpCode OpCode, unsigned  numOperands)
-  : opCode(OpCode), opCodeMask(0), operands(numOperands, MachineOperand()) {
+  : opCode(OpCode), operands(numOperands, MachineOperand()) {
 }
 
 MachineInstr::MachineInstr(MachineOpCode Opcode, unsigned numOperands,
-                           bool XX, bool YY) : opCode(Opcode), opCodeMask(0) {
+                           bool XX, bool YY) : opCode(Opcode) {
   operands.reserve(numOperands);
 }
 
@@ -41,7 +41,6 @@
 // 
 void MachineInstr::replace(MachineOpCode Opcode, unsigned numOperands) {
   opCode = Opcode;
-  opCodeMask = 0;
   operands.clear();
   operands.resize(numOperands, MachineOperand());
 }





More information about the llvm-commits mailing list