bool OperandsComplete() const;
public:
- MachineInstr(MachineOpCode Opcode);
MachineInstr(MachineOpCode Opcode, unsigned numOperands);
/// MachineInstr ctor - This constructor only does a _reserve_ of the
//
extern const TargetInstrDescriptor *TargetInstrDescriptors;
-// Constructor for instructions with fixed #operands (nearly all)
-MachineInstr::MachineInstr(MachineOpCode _opCode)
- : opCode(_opCode),
- operands(TargetInstrDescriptors[_opCode].numOperands, MachineOperand()),
- numImplicitRefs(0)
-{
- assert(TargetInstrDescriptors[_opCode].numOperands >= 0);
-}
-
// Constructor for instructions with variable #operands
MachineInstr::MachineInstr(MachineOpCode OpCode, unsigned numOperands)
: opCode(OpCode),