diff options
Diffstat (limited to 'include/llvm/CodeGen/MachineInstrBuilder.h')
-rw-r--r-- | include/llvm/CodeGen/MachineInstrBuilder.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineInstrBuilder.h b/include/llvm/CodeGen/MachineInstrBuilder.h index 51900603ac..06f5bf06d9 100644 --- a/include/llvm/CodeGen/MachineInstrBuilder.h +++ b/include/llvm/CodeGen/MachineInstrBuilder.h @@ -84,6 +84,11 @@ public: return *this; } + const MachineInstrBuilder &addUndef() const { + MI->addOperand(MachineOperand::CreateUndef()); + return *this; + } + /// addMemOperand - Add a memory operand to the machine instruction. const MachineInstrBuilder &addMemOperand(const MemOperand &MO) const { MI->addMemOperand(MO); |