[llvm-commits] CVS: llvm/include/llvm/CodeGen/SelectionDAGISel.h

Evan Cheng evan.cheng at apple.com
Wed Jul 26 23:37:03 PDT 2006



Changes in directory llvm/include/llvm/CodeGen:

SelectionDAGISel.h updated: 1.18 -> 1.19
---
Log message:

Let each target specific isel provide routine to check if a chain producing node is foldable by another.

---
Diffs of the changes:  (+5 -1)

 SelectionDAGISel.h |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletion(-)


Index: llvm/include/llvm/CodeGen/SelectionDAGISel.h
diff -u llvm/include/llvm/CodeGen/SelectionDAGISel.h:1.18 llvm/include/llvm/CodeGen/SelectionDAGISel.h:1.19
--- llvm/include/llvm/CodeGen/SelectionDAGISel.h:1.18	Sun May  7 20:33:11 2006
+++ llvm/include/llvm/CodeGen/SelectionDAGISel.h	Thu Jul 27 01:36:49 2006
@@ -62,6 +62,10 @@
                                             SelectionDAG &DAG) {
     return true;
   }
+
+  /// IsFoldableBy - 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; }
   
   /// CreateTargetHazardRecognizer - Return a newly allocated hazard recognizer
   /// to use for this target when scheduling the DAG.
@@ -111,7 +115,7 @@
   /// by tblgen.  Others should not call it.
   void SelectInlineAsmMemoryOperands(std::vector<SDOperand> &Ops,
                                      SelectionDAG &DAG);
-  
+
 private:
   SDOperand CopyValueToVirtualRegister(SelectionDAGLowering &SDL,
                                        Value *V, unsigned Reg);






More information about the llvm-commits mailing list