mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
[SelectionDAG] Move (repeated) SDTIntShiftDOp double shift node def to common code. NFCI.
Prep work for PR39467. llvm-svn: 347067
This commit is contained in:
parent
280da75ff7
commit
805e175f61
@ -116,6 +116,9 @@ def SDTIntBinOp : SDTypeProfile<1, 2, [ // add, and, or, xor, udiv, etc.
|
||||
def SDTIntShiftOp : SDTypeProfile<1, 2, [ // shl, sra, srl
|
||||
SDTCisSameAs<0, 1>, SDTCisInt<0>, SDTCisInt<2>
|
||||
]>;
|
||||
def SDTIntShiftDOp: SDTypeProfile<1, 3, [ // fshl, fshr
|
||||
SDTCisSameAs<0, 1>, SDTCisSameAs<0, 2>, SDTCisInt<0>, SDTCisInt<3>
|
||||
]>;
|
||||
def SDTIntSatNoShOp : SDTypeProfile<1, 2, [ // ssat with no shift
|
||||
SDTCisSameAs<0, 1>, SDTCisInt<2>
|
||||
]>;
|
||||
|
@ -1318,9 +1318,6 @@ def ROTR64reg_sw :
|
||||
|
||||
// Create SDNodes so they can be used in the DAG code, e.g.
|
||||
// NVPTXISelLowering (LowerShiftLeftParts and LowerShiftRightParts)
|
||||
def SDTIntShiftDOp :
|
||||
SDTypeProfile<1, 3, [SDTCisSameAs<0, 1>, SDTCisSameAs<0, 2>,
|
||||
SDTCisInt<0>, SDTCisInt<3>]>;
|
||||
def FUN_SHFL_CLAMP : SDNode<"NVPTXISD::FUN_SHFL_CLAMP", SDTIntShiftDOp, []>;
|
||||
def FUN_SHFR_CLAMP : SDNode<"NVPTXISD::FUN_SHFR_CLAMP", SDTIntShiftDOp, []>;
|
||||
|
||||
|
@ -17,10 +17,6 @@
|
||||
// X86 specific DAG Nodes.
|
||||
//
|
||||
|
||||
def SDTIntShiftDOp: SDTypeProfile<1, 3,
|
||||
[SDTCisSameAs<0, 1>, SDTCisSameAs<0, 2>,
|
||||
SDTCisInt<0>, SDTCisInt<3>]>;
|
||||
|
||||
def SDTX86CmpTest : SDTypeProfile<1, 2, [SDTCisVT<0, i32>, SDTCisSameAs<1, 2>]>;
|
||||
|
||||
def SDTX86Cmps : SDTypeProfile<1, 3, [SDTCisFP<0>, SDTCisSameAs<1, 2>, SDTCisVT<3, i8>]>;
|
||||
|
Loading…
x
Reference in New Issue
Block a user