Move isPredicated from .cpp to .h
authorEvan Cheng <evan.cheng@apple.com>
Fri, 10 Jul 2009 01:38:27 +0000 (01:38 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 10 Jul 2009 01:38:27 +0000 (01:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75217 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMBaseInstrInfo.cpp
lib/Target/ARM/ARMBaseInstrInfo.h

index f659cb50a05a1502279b50a51c30922bc3bad6ee..f7e634a48cc4ced67579bdf9fa1a8d5798df1374 100644 (file)
@@ -338,11 +338,6 @@ ReverseBranchCondition(SmallVectorImpl<MachineOperand> &Cond) const {
   return false;
 }
 
-bool ARMBaseInstrInfo::isPredicated(const MachineInstr *MI) const {
-  int PIdx = MI->findFirstPredOperandIdx();
-  return PIdx != -1 && MI->getOperand(PIdx).getImm() != ARMCC::AL;
-}
-
 bool ARMBaseInstrInfo::
 PredicateInstruction(MachineInstr *MI,
                      const SmallVectorImpl<MachineOperand> &Pred) const {
index 9c67c21a1ba68f0cabed3bc3d244a833760feea1..c300264c822ccc71ea71ed98998ad6492130dc2d 100644 (file)
@@ -222,7 +222,10 @@ public:
   bool ReverseBranchCondition(SmallVectorImpl<MachineOperand> &Cond) const;
 
   // Predication support.
-  virtual bool isPredicated(const MachineInstr *MI) const;
+  bool isPredicated(const MachineInstr *MI) const {
+    int PIdx = MI->findFirstPredOperandIdx();
+    return PIdx != -1 && MI->getOperand(PIdx).getImm() != ARMCC::AL;
+  }
 
   ARMCC::CondCodes getPredicate(const MachineInstr *MI) const {
     int PIdx = MI->findFirstPredOperandIdx();