diff options
author | Chris Lattner <sabre@nondot.org> | 2005-01-18 02:51:41 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-01-18 02:51:41 +0000 |
commit | 30c0fc23c548f75d4e501c39be4be597089d516f (patch) | |
tree | f1a6bd04ff3eda6ee1d0144a2ab1b0643009b16c /include/llvm/CodeGen | |
parent | 883c86f51047c442ab0542dfa553040907ce4d50 (diff) | |
download | external_llvm-30c0fc23c548f75d4e501c39be4be597089d516f.zip external_llvm-30c0fc23c548f75d4e501c39be4be597089d516f.tar.gz external_llvm-30c0fc23c548f75d4e501c39be4be597089d516f.tar.bz2 |
Allow setcc operations to have non-bool types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19655 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r-- | include/llvm/CodeGen/SelectionDAG.h | 3 | ||||
-rw-r--r-- | include/llvm/CodeGen/SelectionDAGNodes.h | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/SelectionDAG.h b/include/llvm/CodeGen/SelectionDAG.h index 12c3c21..be4c29a 100644 --- a/include/llvm/CodeGen/SelectionDAG.h +++ b/include/llvm/CodeGen/SelectionDAG.h @@ -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. /// diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h index b721ada..37e0ed0 100644 --- a/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/include/llvm/CodeGen/SelectionDAGNodes.h @@ -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: |