mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-05 03:36:43 +00:00
Provide hooks to set MI flags in MachineInstrBuilder
llvm-svn: 127100
This commit is contained in:
parent
62e48532b9
commit
d7910e3cb6
@ -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…
x
Reference in New Issue
Block a user