From: Anton Korobeynikov Date: Sat, 5 Mar 2011 18:43:20 +0000 (+0000) Subject: Provide hooks to set MI flags in MachineInstrBuilder X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=94c1b08033b69495387a85124ca888d3c62f78c7;p=oota-llvm.git 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 --- diff --git a/include/llvm/CodeGen/MachineInstrBuilder.h b/include/llvm/CodeGen/MachineInstrBuilder.h index 1eb97353088..f04dee2b4b0 100644 --- a/include/llvm/CodeGen/MachineInstrBuilder.h +++ b/include/llvm/CodeGen/MachineInstrBuilder.h @@ -145,6 +145,16 @@ public: 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. const MachineInstrBuilder &addDisp(const MachineOperand &Disp, int64_t off) const {