mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-16 07:38:43 +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).
|
/// (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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user