diff options
author | Evan Cheng <evan.cheng@apple.com> | 2011-12-09 06:41:08 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2011-12-09 06:41:08 +0000 |
commit | 32f9763017f4329a0da75648655d63c9d7b91130 (patch) | |
tree | f185982bb79d90ec97053f0c4ee3a5ec7a73c31f /include/llvm/Target | |
parent | 85abb2700d7791bcfa022fe8765df72929256d20 (diff) | |
download | external_llvm-32f9763017f4329a0da75648655d63c9d7b91130.zip external_llvm-32f9763017f4329a0da75648655d63c9d7b91130.tar.gz external_llvm-32f9763017f4329a0da75648655d63c9d7b91130.tar.bz2 |
Move isUnpredicatedTerminator() default implementation to TargetInstrInfoImpl to break Target's dependency on CodeGen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146247 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target')
-rw-r--r-- | include/llvm/Target/TargetInstrInfo.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h index 590fc1e..1903da7 100644 --- a/include/llvm/Target/TargetInstrInfo.h +++ b/include/llvm/Target/TargetInstrInfo.h @@ -535,7 +535,7 @@ public: /// isUnpredicatedTerminator - Returns true if the instruction is a /// terminator instruction that has not been predicated. - virtual bool isUnpredicatedTerminator(const MachineInstr *MI) const; + virtual bool isUnpredicatedTerminator(const MachineInstr *MI) const = 0; /// PredicateInstruction - Convert the instruction into a predicated /// instruction. It returns true if the operation was successful. @@ -814,6 +814,7 @@ public: virtual bool hasStoreToStackSlot(const MachineInstr *MI, const MachineMemOperand *&MMO, int &FrameIndex) const; + virtual bool isUnpredicatedTerminator(const MachineInstr *MI) const; virtual bool PredicateInstruction(MachineInstr *MI, const SmallVectorImpl<MachineOperand> &Pred) const; virtual void reMaterialize(MachineBasicBlock &MBB, |