Add abstract frame index capability

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5140 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-12-25 05:01:18 +00:00
parent 7c56bf694e
commit aa0e277f31

View File

@ -48,7 +48,7 @@ struct MachineInstrBuilder {
/// (Same as addReg(RegNo, true) but shorter and more obvious). /// (Same as addReg(RegNo, true) but shorter and more obvious).
/// ///
const MachineInstrBuilder &addClobber(int RegNo) const { const MachineInstrBuilder &addClobber(int RegNo) const {
MI->addRegOperand(RegNo, true); MI->addRegOperand(RegNo, MOTy::Def);
return *this; return *this;
} }
@ -86,6 +86,11 @@ struct MachineInstrBuilder {
MI->addMachineBasicBlockOperand(MBB); MI->addMachineBasicBlockOperand(MBB);
return *this; return *this;
} }
const MachineInstrBuilder &addFrameIndex(unsigned Idx) const {
MI->addFrameIndexOperand(Idx);
return *this;
}
}; };
/// BuildMI - Builder interface. Specify how to create the initial instruction /// BuildMI - Builder interface. Specify how to create the initial instruction