mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 14:47:00 +00:00
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:
parent
7c56bf694e
commit
aa0e277f31
@ -48,7 +48,7 @@ struct MachineInstrBuilder {
|
||||
/// (Same as addReg(RegNo, true) but shorter and more obvious).
|
||||
///
|
||||
const MachineInstrBuilder &addClobber(int RegNo) const {
|
||||
MI->addRegOperand(RegNo, true);
|
||||
MI->addRegOperand(RegNo, MOTy::Def);
|
||||
return *this;
|
||||
}
|
||||
|
||||
@ -86,6 +86,11 @@ struct MachineInstrBuilder {
|
||||
MI->addMachineBasicBlockOperand(MBB);
|
||||
return *this;
|
||||
}
|
||||
|
||||
const MachineInstrBuilder &addFrameIndex(unsigned Idx) const {
|
||||
MI->addFrameIndexOperand(Idx);
|
||||
return *this;
|
||||
}
|
||||
};
|
||||
|
||||
/// BuildMI - Builder interface. Specify how to create the initial instruction
|
||||
|
Loading…
Reference in New Issue
Block a user