mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 17:29:19 +00:00
Provide hooks to set MI flags in MachineInstrBuilder
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127100 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b5e16af9ea
commit
94c1b08033
@ -145,6 +145,16 @@ public:
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const MachineInstrBuilder &setMIFlags(unsigned Flags) const {
|
||||||
|
MI->setFlags(Flags);
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
const MachineInstrBuilder &setMIFlag(MachineInstr::MIFlag Flag) const {
|
||||||
|
MI->setFlag(Flag);
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
// Add a displacement from an existing MachineOperand with an added offset.
|
// Add a displacement from an existing MachineOperand with an added offset.
|
||||||
const MachineInstrBuilder &addDisp(const MachineOperand &Disp,
|
const MachineInstrBuilder &addDisp(const MachineOperand &Disp,
|
||||||
int64_t off) const {
|
int64_t off) const {
|
||||||
|
Loading…
Reference in New Issue
Block a user