diff options
-rw-r--r-- | include/llvm/CodeGen/MachineInstrBuilder.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineInstrBuilder.h b/include/llvm/CodeGen/MachineInstrBuilder.h index 3d3015588b..9a57150ca3 100644 --- a/include/llvm/CodeGen/MachineInstrBuilder.h +++ b/include/llvm/CodeGen/MachineInstrBuilder.h @@ -43,6 +43,14 @@ public: return *this; } + /// addReg - Add an LLVM value that is to be used as a register... + /// + const MachineInstrBuilder &addCCReg(Value *V, + MOTy::UseType Ty = MOTy::Use) const { + MI->addCCRegOperand(V, Ty); + return *this; + } + /// addRegDef - Add an LLVM value that is to be defined as a register... this /// is the same as addReg(V, MOTy::Def). /// |