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

Chris Lattner lattner at cs.uiuc.edu
Thu Jan 13 09:58:50 PST 2005



Changes in directory llvm/include/llvm/CodeGen:

SelectionDAGISel.h updated: 1.1 -> 1.2
SelectionDAGNodes.h updated: 1.11 -> 1.12
---
Log message:

Add a new node type, add comments.


---
Diffs of the changes:  (+13 -4)

Index: llvm/include/llvm/CodeGen/SelectionDAGISel.h
diff -u llvm/include/llvm/CodeGen/SelectionDAGISel.h:1.1 llvm/include/llvm/CodeGen/SelectionDAGISel.h:1.2
--- llvm/include/llvm/CodeGen/SelectionDAGISel.h:1.1	Fri Jan  7 01:46:03 2005
+++ llvm/include/llvm/CodeGen/SelectionDAGISel.h	Thu Jan 13 11:58:35 2005
@@ -21,6 +21,7 @@
 namespace llvm {
   class SelectionDAG;
   class SelectionDAGLowering;
+  class SDOperand;
   class SSARegMap;
   class MachineBasicBlock;
   class MachineFunction;
@@ -49,8 +50,8 @@
 
   virtual void InstructionSelectBasicBlock(SelectionDAG &SD) = 0;
   
-  void CopyValueToVirtualRegister(SelectionDAGLowering &SDL,
-                                  Value *V, unsigned Reg);
+  SDOperand CopyValueToVirtualRegister(SelectionDAGLowering &SDL,
+                                       Value *V, unsigned Reg);
   void SelectBasicBlock(BasicBlock *BB, MachineFunction &MF,
                         FunctionLoweringInfo &FuncInfo);
   


Index: llvm/include/llvm/CodeGen/SelectionDAGNodes.h
diff -u llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.11 llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.12
--- llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.11	Wed Jan 12 12:37:33 2005
+++ llvm/include/llvm/CodeGen/SelectionDAGNodes.h	Thu Jan 13 11:58:35 2005
@@ -44,8 +44,16 @@
   /// SelectionDAG.
   ///
   enum NodeType {
-    // Leaf nodes
-    EntryToken, Constant, ConstantFP, GlobalAddress, FrameIndex, ConstantPool,
+    // EntryToken - This is the marker used to indicate the start of the region.
+    EntryToken,
+
+    // Token factor - This node is takes multiple tokens as input and produces a
+    // single token result.  This is used to represent the fact that the operand
+    // operators are independent of each other.
+    TokenFactor,
+    
+    // Various leaf nodes.
+    Constant, ConstantFP, GlobalAddress, FrameIndex, ConstantPool,
     BasicBlock, ExternalSymbol,
 
     // CopyToReg - This node has chain and child nodes, and an associated






More information about the llvm-commits mailing list