mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-20 11:08:27 +00:00
Add SDAG TableGen definitions for BR_CC
Add SelectionDAG TableGen definitions for BR_CC so that targets can instruction-select BR_CC using TableGen pattern matching. Patch by deadal nix. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218476 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3011a602be
commit
2a7d068c49
@ -162,6 +162,10 @@ def SDTBr : SDTypeProfile<0, 1, [ // br
|
||||
SDTCisVT<0, OtherVT>
|
||||
]>;
|
||||
|
||||
def SDTBrCC : SDTypeProfile<0, 4, [ // brcc
|
||||
SDTCisVT<0, OtherVT>, SDTCisSameAs<1, 2>, SDTCisVT<3, OtherVT>
|
||||
]>;
|
||||
|
||||
def SDTBrcond : SDTypeProfile<0, 2, [ // brcond
|
||||
SDTCisInt<0>, SDTCisVT<1, OtherVT>
|
||||
]>;
|
||||
@ -400,6 +404,7 @@ def select : SDNode<"ISD::SELECT" , SDTSelect>;
|
||||
def vselect : SDNode<"ISD::VSELECT" , SDTVSelect>;
|
||||
def selectcc : SDNode<"ISD::SELECT_CC" , SDTSelectCC>;
|
||||
|
||||
def brcc : SDNode<"ISD::BR_CC" , SDTBrCC, [SDNPHasChain]>;
|
||||
def brcond : SDNode<"ISD::BRCOND" , SDTBrcond, [SDNPHasChain]>;
|
||||
def brind : SDNode<"ISD::BRIND" , SDTBrind, [SDNPHasChain]>;
|
||||
def br : SDNode<"ISD::BR" , SDTBr, [SDNPHasChain]>;
|
||||
|
Loading…
Reference in New Issue
Block a user