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

Nate Begeman natebegeman at mac.com
Wed Aug 31 17:19:37 PDT 2005



Changes in directory llvm/include/llvm/CodeGen:

SelectionDAG.h updated: 1.58 -> 1.59
---
Log message:

First pass at the DAG Combiner.  It isn't used anywhere yet, but it should
be mostly functional.  It currently has all folds from SelectionDAG.cpp
that do not involve a condition code.


---
Diffs of the changes:  (+6 -0)

 SelectionDAG.h |    6 ++++++
 1 files changed, 6 insertions(+)


Index: llvm/include/llvm/CodeGen/SelectionDAG.h
diff -u llvm/include/llvm/CodeGen/SelectionDAG.h:1.58 llvm/include/llvm/CodeGen/SelectionDAG.h:1.59
--- llvm/include/llvm/CodeGen/SelectionDAG.h:1.58	Tue Aug 30 17:38:05 2005
+++ llvm/include/llvm/CodeGen/SelectionDAG.h	Wed Aug 31 19:19:25 2005
@@ -79,6 +79,12 @@
   ///
   const SDOperand &setRoot(SDOperand N) { return Root = N; }
 
+  /// Combine - This iterates over the nodes in the SelectionDAG, folding
+  /// certain types of nodes together, or eliminating superfluous nodes.  When
+  /// the AfterLegalize argument is set to 'true', Combine takes care not to
+  /// generate any nodes that will be illegal on the target.
+  void Combine(bool AfterLegalize);
+  
   /// Legalize - This transforms the SelectionDAG into a SelectionDAG that is
   /// compatible with the target instruction selector, as indicated by the
   /// TargetLowering object.






More information about the llvm-commits mailing list