From: Chris Lattner Date: Wed, 15 Jan 2003 19:22:06 +0000 (+0000) Subject: Add support for the CC registers for Sparc BE X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=4d69c8e3691e7e58db0e9f74399490d81f2770b4;p=oota-llvm.git 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 --- diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index 4fb23c0df7f..f4b1cba1be0 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) {