mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user