From 109d114e4c15947bee9f3150c457a47e3e5d587c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 15 Jan 2003 19:22:06 +0000 Subject: Add support for the CC registers for Sparc BE llvm-svn: 5296 --- llvm/include/llvm/CodeGen/MachineInstr.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'llvm') diff --git a/llvm/include/llvm/CodeGen/MachineInstr.h b/llvm/include/llvm/CodeGen/MachineInstr.h index 4fb23c0df7f..f4b1cba1be0 100644 --- a/llvm/include/llvm/CodeGen/MachineInstr.h +++ b/llvm/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) { -- cgit v1.2.3