[llvm-commits] [llvm] r127100 - /llvm/trunk/include/llvm/CodeGen/MachineInstrBuilder.h
Anton Korobeynikov
asl at math.spbu.ru
Sat Mar 5 10:43:20 PST 2011
Author: asl
Date: Sat Mar 5 12:43:20 2011
New Revision: 127100
URL: http://llvm.org/viewvc/llvm-project?rev=127100&view=rev
Log:
Provide hooks to set MI flags in MachineInstrBuilder
Modified:
llvm/trunk/include/llvm/CodeGen/MachineInstrBuilder.h
Modified: llvm/trunk/include/llvm/CodeGen/MachineInstrBuilder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineInstrBuilder.h?rev=127100&r1=127099&r2=127100&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineInstrBuilder.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineInstrBuilder.h Sat Mar 5 12:43:20 2011
@@ -145,6 +145,16 @@
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 {
More information about the llvm-commits
mailing list