diff options
author | Chris Lattner <sabre@nondot.org> | 2002-10-30 01:48:41 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-10-30 01:48:41 +0000 |
commit | 9cc361579b6a0aad9a71dc617eedd4d909d48acf (patch) | |
tree | dfa98bdcf120b0bf4c768c0e0ac97260842ef2c7 /include/llvm/CodeGen/MachineInstr.h | |
parent | b752e9a2aee4165ab07f39a16bbc304e84451e01 (diff) |
Allow BuildMI that helps automate construction of SSA information
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4443 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineInstr.h')
-rw-r--r-- | include/llvm/CodeGen/MachineInstr.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index 6b6b3255e3..a157e9d39b 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/include/llvm/CodeGen/MachineInstr.h @@ -372,10 +372,11 @@ public: /// addRegOperand - Add a symbolic virtual register reference... /// - void addRegOperand(int reg) { + void addRegOperand(int reg, bool isDef = false) { assert(!OperandsComplete() && "Trying to add an operand to a machine instr that is already done!"); - operands.push_back(MachineOperand(reg, MachineOperand::MO_VirtualRegister)); + operands.push_back(MachineOperand(reg, MachineOperand::MO_VirtualRegister, + isDef)); } /// addPCDispOperand - Add a PC relative displacement operand to the MI |