Move some methods out of MachineInstr into MachineOperand

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28102 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2006-05-04 17:52:23 +00:00
parent e3158308e0
commit e53f4a055f
15 changed files with 56 additions and 70 deletions

View File

@ -107,25 +107,6 @@ bool MachineInstr::OperandsComplete() const {
return false;
}
void
MachineInstr::SetMachineOperandConst(unsigned i,
MachineOperand::MachineOperandType opTy,
int intValue) {
assert(i < getNumOperands());
operands[i].opType = opTy;
operands[i].contents.immedVal = intValue;
operands[i].extra.regNum = -1;
operands[i].flags = 0;
}
void MachineInstr::SetMachineOperandReg(unsigned i, int regNum) {
assert(i < getNumOperands());
operands[i].opType = MachineOperand::MO_VirtualRegister;
operands[i].contents.GV = NULL;
operands[i].extra.regNum = regNum;
}
void MachineInstr::dump() const {
std::cerr << " " << *this;
}