OSDN Git Service

Allow setcc operations to have non-bool types.
authorChris Lattner <sabre@nondot.org>
Tue, 18 Jan 2005 02:51:41 +0000 (02:51 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 18 Jan 2005 02:51:41 +0000 (02:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19655 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SelectionDAG.h
include/llvm/CodeGen/SelectionDAGNodes.h

index 12c3c21..be4c29a 100644 (file)
@@ -131,7 +131,8 @@ public:
     return NN;
   }
 
-  SDOperand getSetCC(ISD::CondCode, SDOperand LHS, SDOperand RHS);
+  SDOperand getSetCC(ISD::CondCode, MVT::ValueType VT,
+                     SDOperand LHS, SDOperand RHS);
 
   /// getNode - Gets or creates the specified node.
   ///
index b721ada..37e0ed0 100644 (file)
@@ -707,7 +707,6 @@ protected:
   friend class SelectionDAG;
   SetCCSDNode(ISD::CondCode Cond, SDOperand LHS, SDOperand RHS)
     : SDNode(ISD::SETCC, LHS, RHS), Condition(Cond) {
-    setValueTypes(MVT::i1);
   }
 public: