diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h index 29ff38fbc8f..71a6dcdeb30 100644 --- a/include/llvm/Target/TargetInstrInfo.h +++ b/include/llvm/Target/TargetInstrInfo.h @@ -383,6 +383,20 @@ public: abort(); } + /// isPredicatable - True if the instruction can be converted into a + /// predicated instruction. + virtual bool isPredicatable(MachineInstr *MI) const { + return false; + } + + /// PredicateInstruction - Convert the instruction into a predicated + /// instruction. + virtual void PredicateInstruction(MachineInstr *MI, + std::vector &Cond) const { + assert(0 && "Target didn't implement PredicateInstruction!"); + abort(); + } + /// getPointerRegClass - Returns a TargetRegisterClass used for pointer /// values. virtual const TargetRegisterClass *getPointerRegClass() const {