Convert load/store over to being pattern matched

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24871 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nate Begeman
2005-12-19 23:25:09 +00:00
parent 898101c15f
commit 7fd1edd32e
4 changed files with 202 additions and 223 deletions

View File

@@ -181,7 +181,19 @@ namespace {
unsigned RegNo = enumRegToMachineReg(CCReg);
O << (0x80 >> RegNo);
}
// The new addressing mode printers, currently empty
void printMemRegImm(const MachineInstr *MI, unsigned OpNo) {
printSymbolLo(MI, OpNo);
O << '(';
printOperand(MI, OpNo+1);
O << ')';
}
void printMemRegReg(const MachineInstr *MI, unsigned OpNo) {
printOperand(MI, OpNo);
O << ", ";
printOperand(MI, OpNo+1);
}
virtual bool runOnMachineFunction(MachineFunction &F) = 0;
virtual bool doFinalization(Module &M) = 0;
};