Changes in directory llvm/include/llvm/CodeGen:

SelectionDAGISel.h updated: 1.27 -> 1.28
---
Log message:

generalize 'CaseBlock'.  It really allows any comparison to be inserted.


---
Diffs of the changes:  (+7 -8)

 SelectionDAGISel.h |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)


Index: llvm/include/llvm/CodeGen/SelectionDAGISel.h
diff -u llvm/include/llvm/CodeGen/SelectionDAGISel.h:1.27 
llvm/include/llvm/CodeGen/SelectionDAGISel.h:1.28
--- llvm/include/llvm/CodeGen/SelectionDAGISel.h:1.27   Sat Oct 14 03:30:53 2006
+++ llvm/include/llvm/CodeGen/SelectionDAGISel.h        Tue Oct 24 12:03:35 2006
@@ -82,20 +82,19 @@
   /// SDISel for the code generation of additional basic blocks needed by 
multi-
   /// case switch statements.
   struct CaseBlock {
-    CaseBlock(ISD::CondCode cc, Value *s, Constant *c, MachineBasicBlock *lhs,
-              MachineBasicBlock *rhs, MachineBasicBlock *me) : 
-    CC(cc), SwitchV(s), CaseC(c), LHSBB(lhs), RHSBB(rhs), ThisBB(me) {}
+    CaseBlock(ISD::CondCode cc, Value *cmplhs, Value *cmprhs, 
+              MachineBasicBlock *lhs, MachineBasicBlock *rhs,
+              MachineBasicBlock *me) : 
+    CC(cc), CmpLHS(cmplhs), CmpRHS(cmprhs), LHSBB(lhs), RHSBB(rhs), 
ThisBB(me){}
     // CC - the condition code to use for the case block's setcc node
     ISD::CondCode CC;
-    // SwitchV - the value to be switched on, 'foo' in switch(foo)
-    Value *SwitchV;
-    // CaseC - the constant the setcc node will compare against SwitchV
-    Constant *CaseC;
+    // CmpLHS/CmpRHS - The LHS/RHS of the comparison to emit.
+    Value *CmpLHS, *CmpRHS;
     // LHSBB - the block to branch to if the setcc is true
     MachineBasicBlock *LHSBB;
     // RHSBB - the block to branch to if the setcc is false
     MachineBasicBlock *RHSBB;
-    // ThisBB - the blcok into which to emit the code for the setcc and 
branches
+    // ThisBB - the block into which to emit the code for the setcc and 
branches
     MachineBasicBlock *ThisBB;
   };
   struct JumpTable {



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to