Add support for brcond
authorAndrew Lenharth <andrewl@lenharth.org>
Sun, 1 Jan 2006 22:16:43 +0000 (22:16 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Sun, 1 Jan 2006 22:16:43 +0000 (22:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25058 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/TargetSelectionDAG.td

index e19a5a375a6044bb1a0df24df68d337e0e6413b5..db7c2bdd02329e14831ac6fa6db0bca5684247d7 100644 (file)
@@ -131,6 +131,10 @@ def SDTBr : SDTypeProfile<0, 1, [ // br
   SDTCisVT<0, OtherVT>
 ]>;
 
+def SDTBrcond : SDTypeProfile<0, 2, [ // brcond
+  SDTCisInt<0>, SDTCisVT<1, OtherVT>
+]>;
+
 def SDTRet : SDTypeProfile<0, 0, []>; // ret
 
 def SDTReadPort : SDTypeProfile<1, 1, [ // readport
@@ -260,6 +264,7 @@ def setcc      : SDNode<"ISD::SETCC"      , SDTSetCC>;
 def select     : SDNode<"ISD::SELECT"     , SDTSelect>;
 def selectcc   : SDNode<"ISD::SELECT_CC"  , SDTSelectCC>;
 
+def brcond     : SDNode<"ISD::BRCOND"     , SDTBrcond, [SDNPHasChain]>;
 def br         : SDNode<"ISD::BR"         , SDTBr,     [SDNPHasChain]>;
 def ret        : SDNode<"ISD::RET"        , SDTRet,    [SDNPHasChain]>;