aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineInstrBuilder.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-03-14 01:47:49 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-03-14 01:47:49 +0000
commit15fda403f36d353b9d4bcfb03377bc74f40dafe5 (patch)
tree044920133d47b0cca9abd7762cda3751e6cf971a /include/llvm/CodeGen/MachineInstrBuilder.h
parent5922f561c65968ef1865cc8434d191041e450602 (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.h5
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);