diff options
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r-- | include/llvm/CodeGen/MachineInstr.h | 4 | ||||
-rw-r--r-- | include/llvm/CodeGen/MachineInstrBuilder.h | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index 06d8f3acbf..d3769a2651 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/include/llvm/CodeGen/MachineInstr.h @@ -413,6 +413,10 @@ public: Op.offset = 0; } + /// addImplicitDefUseOperands - Add all implicit def and use operands to + /// this instruction. + void addImplicitDefUseOperands(); + //===--------------------------------------------------------------------===// // Accessors used to modify instructions in place. // diff --git a/include/llvm/CodeGen/MachineInstrBuilder.h b/include/llvm/CodeGen/MachineInstrBuilder.h index 4da557cbb3..a9e7ffd4d5 100644 --- a/include/llvm/CodeGen/MachineInstrBuilder.h +++ b/include/llvm/CodeGen/MachineInstrBuilder.h @@ -77,6 +77,11 @@ public: MI->addExternalSymbolOperand(FnName); return *this; } + + const MachineInstrBuilder &addImplicitDefsUses() const { + MI->addImplicitDefUseOperands(); + return *this; + } }; /// BuildMI - Builder interface. Specify how to create the initial instruction |