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

Anton Korobeynikov asl at math.spbu.ru
Wed Mar 7 08:25:52 PST 2007



Changes in directory llvm/include/llvm/CodeGen:

SelectionDAGISel.h updated: 1.32 -> 1.33
SelectionDAGNodes.h updated: 1.180 -> 1.181
---
Log message:

Refactoring of formal parameter flags. Enable properly use of 
zext/sext/aext stuff.


---
Diffs of the changes:  (+17 -16)

 SelectionDAGISel.h  |   16 +---------------
 SelectionDAGNodes.h |   17 ++++++++++++++++-
 2 files changed, 17 insertions(+), 16 deletions(-)


Index: llvm/include/llvm/CodeGen/SelectionDAGISel.h
diff -u llvm/include/llvm/CodeGen/SelectionDAGISel.h:1.32 llvm/include/llvm/CodeGen/SelectionDAGISel.h:1.33
--- llvm/include/llvm/CodeGen/SelectionDAGISel.h:1.32	Tue Mar  6 00:10:33 2007
+++ llvm/include/llvm/CodeGen/SelectionDAGISel.h	Wed Mar  7 10:25:08 2007
@@ -30,21 +30,7 @@
   class TargetLowering;
   class FunctionLoweringInfo;
   class HazardRecognizer;
-
-  namespace SDISelParamFlags {
-    enum Flags {
-      NoFlagSet         = 0,
-      Signed            = 1<<0,
-      SignedOffs        = 0,
-      InReg             = 1<<1,
-      InRegOffs         = 1,
-      StructReturn      = 1<<2,
-      StructReturnOffs  = 2,
-      OrigAlignment     = 0x1F<<27,
-      OrigAlignmentOffs = 27
-    };
-  }
-  
+ 
 /// SelectionDAGISel - This is the common base class used for SelectionDAG-based
 /// pattern-matching instruction selectors.
 class SelectionDAGISel : public FunctionPass {


Index: llvm/include/llvm/CodeGen/SelectionDAGNodes.h
diff -u llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.180 llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.181
--- llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.180	Wed Mar  7 02:04:41 2007
+++ llvm/include/llvm/CodeGen/SelectionDAGNodes.h	Wed Mar  7 10:25:08 2007
@@ -48,11 +48,26 @@
   unsigned short NumVTs;
 };
 
-
 /// ISD namespace - This namespace contains an enum which represents all of the
 /// SelectionDAG node types and value types.
 ///
 namespace ISD {
+  namespace ParamFlags {    
+  enum Flags {
+    NoFlagSet         = 0,
+    ZExt              = 1<<0,  ///< Parameter should be zero extended
+    ZExtOffs          = 0,
+    SExt              = 1<<1,  ///< Parameter should be sign extended
+    SExtOffs          = 1,
+    InReg             = 1<<2,  ///< Parameter should be passed in register
+    InRegOffs         = 2,
+    StructReturn      = 1<<3,  ///< Hidden struct-return pointer
+    StructReturnOffs  = 3,
+    OrigAlignment     = 0x1F<<27,
+    OrigAlignmentOffs = 27
+  };
+  }
+
   //===--------------------------------------------------------------------===//
   /// ISD::NodeType enum - This enum defines all of the operators valid in a
   /// SelectionDAG.






More information about the llvm-commits mailing list