Rename IsFoldableBy to CanBeFoldedleBy
authorEvan Cheng <evan.cheng@apple.com>
Fri, 28 Jul 2006 01:03:48 +0000 (01:03 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 28 Jul 2006 01:03:48 +0000 (01:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29376 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SelectionDAGISel.h
lib/Target/X86/X86ISelDAGToDAG.cpp
utils/TableGen/DAGISelEmitter.cpp

index 790f23ba6b002fb547befe1881aeebb75a931cb1..78179c9e2ad40292ff2ec23e0db59edca3311b06 100644 (file)
@@ -63,9 +63,9 @@ public:
     return true;
   }
 
-  /// IsFoldableBy - Returns true if the specific operand node N of U can be
+  /// CanBeFoldedBy - Returns true if the specific operand node N of U can be
   /// folded during instruction selection?
-  virtual bool IsFoldableBy(SDNode *N, SDNode *U) { return true; }
+  virtual bool CanBeFoldedBy(SDNode *N, SDNode *U) { return true; }
   
   /// CreateTargetHazardRecognizer - Return a newly allocated hazard recognizer
   /// to use for this target when scheduling the DAG.
index eea6feb19194bc6b744a762059b5e13d43db34da..cafb1662ce6c881fc8cb229c4ab7afe446752cf9 100644 (file)
@@ -118,7 +118,7 @@ namespace {
 
     virtual void EmitFunctionEntryCode(Function &Fn, MachineFunction &MF);
 
-    virtual bool IsFoldableBy(SDNode *N, SDNode *U);
+    virtual bool CanBeFoldedBy(SDNode *N, SDNode *U);
 
 // Include the pieces autogenerated from the target description.
 #include "X86GenDAGISel.inc"
@@ -232,7 +232,7 @@ namespace {
   };
 }
 
-bool X86DAGToDAGISel::IsFoldableBy(SDNode *N, SDNode *U) {
+bool X86DAGToDAGISel::CanBeFoldedBy(SDNode *N, SDNode *U) {
   // Is it already folded by SelectAddr / SelectLEAAddr?
   if (isUnfoldable(N))
     return false;
@@ -711,7 +711,7 @@ bool X86DAGToDAGISel::TryFoldLoad(SDOperand P, SDOperand N,
   if (N.getOpcode() == ISD::LOAD &&
       N.hasOneUse() &&
       !CodeGenMap.count(N.getValue(0)) &&
-      !IsFoldableBy(N.Val, P.Val))
+      !CanBeFoldedBy(N.Val, P.Val))
     return SelectAddr(N.getOperand(1), Base, Scale, Index, Disp);
   return false;
 }
index fa4d8492e44aae7e3f0d3d1aefe2cce331a3dd43..c1d5d3a237181f07fb747efb1107a7fe745406b9 100644 (file)
@@ -2276,7 +2276,7 @@ public:
               PInfo.hasProperty(SDNodeInfo::SDNPHasChain) ||
               PInfo.hasProperty(SDNodeInfo::SDNPInFlag) ||
               PInfo.hasProperty(SDNodeInfo::SDNPOptInFlag))
-            emitCheck("IsFoldableBy(" + RootName + ".Val, " + ParentName +
+            emitCheck("CanBeFoldedBy(" + RootName + ".Val, " + ParentName +
                       ".Val)");
         }
       }