diff options
| author | Chris Lattner <sabre@nondot.org> | 2001-10-13 06:30:10 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2001-10-13 06:30:10 +0000 |
| commit | 1c36d74dece877bd3b31798345eddd06d4b50b3d (patch) | |
| tree | f8d265487cd2c9781d09dbc230d5d7bb614ae95d | |
| parent | 2e676d616028537736a951703f9eef23ca5de4ff (diff) | |
| download | bcm5719-llvm-1c36d74dece877bd3b31798345eddd06d4b50b3d.tar.gz bcm5719-llvm-1c36d74dece877bd3b31798345eddd06d4b50b3d.zip | |
Clean up initializers for GCC 2.96
llvm-svn: 747
| -rw-r--r-- | llvm/include/llvm/CodeGen/MachineInstr.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineInstr.h b/llvm/include/llvm/CodeGen/MachineInstr.h index 0efd8abb79c..b2074726a3d 100644 --- a/llvm/include/llvm/CodeGen/MachineInstr.h +++ b/llvm/include/llvm/CodeGen/MachineInstr.h @@ -161,9 +161,8 @@ public: inline MachineOperand::MachineOperand() : opType(MO_VirtualRegister), - value(NULL), - regNum(0), immedVal(0), + regNum(0), isDef(false) {} @@ -171,9 +170,8 @@ inline MachineOperand::MachineOperand(MachineOperandType operandType, Value* _val) : opType(operandType), - value(_val), - regNum(0), immedVal(0), + value(_val), isDef(false) {} @@ -263,13 +261,12 @@ public: unsigned numOperands, OpCodeMask _opCodeMask = 0x0); inline ~MachineInstr () {} - - const MachineOpCode getOpCode () const { return opCode; } - + const MachineOpCode getOpCode () const; + // // Information about explicit operands of the instruction // - unsigned int getNumOperands () const { return operands.size(); } + unsigned int getNumOperands () const; bool operandIsDefined(unsigned int i) const; @@ -422,6 +419,7 @@ public: // Purpose: // Representation of the sequence of machine instructions created // for a single VM instruction. Additionally records information +// about hidden and implicit values used by the machine instructions: // about hidden values used by the machine instructions: // // "Temporary values" are intermediate values used in the machine @@ -430,6 +428,9 @@ public: // no interpretation of their operands (i.e., as a TmpInstruction // object which actually represents such a value). // +// (2) "Implicit uses" are values used in the VM instruction but not in +// the machine instruction sequence +// //--------------------------------------------------------------------------- class MachineCodeForVMInstr: public vector<MachineInstr*> |

