diff options
author | Chris Lattner <sabre@nondot.org> | 2003-01-15 19:22:06 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-01-15 19:22:06 +0000 |
commit | 4d69c8e3691e7e58db0e9f74399490d81f2770b4 (patch) | |
tree | c85f6c38a923e0a0a0442a4709ea36f60c3cbc4d | |
parent | 4091233dfdc8698ff0ab77f68c8acd9626121d18 (diff) |
Add support for the CC registers for Sparc BE
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5296 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/CodeGen/MachineInstr.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index 4fb23c0df7..f4b1cba1be 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/include/llvm/CodeGen/MachineInstr.h @@ -473,6 +473,14 @@ public: UTy, isPCRelative)); } + void addCCRegOperand(Value *V, MOTy::UseType UTy = MOTy::Use) { + assert(!OperandsComplete() && + "Trying to add an operand to a machine instr that is already done!"); + operands.push_back(MachineOperand(V, MachineOperand::MO_CCRegister, UTy, + false)); + } + + /// addRegOperand - Add a symbolic virtual register reference... /// void addRegOperand(int reg, bool isDef) { |