diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-03-14 01:47:49 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-03-14 01:47:49 +0000 |
commit | 15fda403f36d353b9d4bcfb03377bc74f40dafe5 (patch) | |
tree | 044920133d47b0cca9abd7762cda3751e6cf971a /include/llvm/CodeGen/MachineInstrBuilder.h | |
parent | 5922f561c65968ef1865cc8434d191041e450602 (diff) |
Add an MO_Undef MachineOperandType, intended for INSERT_SUBREG. Next up MO_Undead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48353 91177308-0d34-0410-b5e6-96231b3b80d8
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); |