diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-05-23 07:19:12 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-05-23 07:19:12 +0000 |
commit | 4f85cd77046d76bd9091aa6caa06e767bd22f64c (patch) | |
tree | 57995b9562938b029bfab5d0953a893cbc57ae8a /include/llvm/Target/TargetInstrInfo.h | |
parent | f711fb7af89c4bda9edea6c0c07b78f12c3f193f (diff) | |
download | external_llvm-4f85cd77046d76bd9091aa6caa06e767bd22f64c.zip external_llvm-4f85cd77046d76bd9091aa6caa06e767bd22f64c.tar.gz external_llvm-4f85cd77046d76bd9091aa6caa06e767bd22f64c.tar.bz2 |
Add a couple of target hooks for predication.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37306 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetInstrInfo.h')
-rw-r--r-- | include/llvm/Target/TargetInstrInfo.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h index b2fc53a..bb1dfd2 100644 --- a/include/llvm/Target/TargetInstrInfo.h +++ b/include/llvm/Target/TargetInstrInfo.h @@ -393,10 +393,23 @@ public: abort(); } + /// isPredicable - Returns true if the instruction is already predicated. + /// + virtual bool isPredicated(MachineInstr *MI) const { + return false; + } + /// PredicateInstruction - Convert the instruction into a predicated /// instruction. It returns true if the operation was successful. virtual bool PredicateInstruction(MachineInstr *MI, - std::vector<MachineOperand> &Cond) const; + std::vector<MachineOperand> &Pred) const; + + /// SubsumesPredicate - Returns true if the first specified predicated + /// subsumes the second, e.g. GE subsumes GT. + virtual bool SubsumesPredicate(std::vector<MachineOperand> &Pred1, + std::vector<MachineOperand> &Pred2) const { + return false; + } /// getPointerRegClass - Returns a TargetRegisterClass used for pointer /// values. |