mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-10 06:03:52 +00:00
add some node definitions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99745 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c812261221
commit
e7700999b8
@ -92,6 +92,10 @@ 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 SDTIntBinHiLoOp : SDTypeProfile<2, 2, [ // mulhi, mullo, sdivrem, udivrem
|
||||
SDTCisSameAs<0, 1>, SDTCisSameAs<0, 2>, SDTCisSameAs<0, 3>,SDTCisInt<0>
|
||||
]>;
|
||||
|
||||
def SDTFPBinOp : SDTypeProfile<1, 2, [ // fadd, fmul, etc.
|
||||
SDTCisSameAs<0, 1>, SDTCisSameAs<0, 2>, SDTCisFP<0>
|
||||
]>;
|
||||
@ -281,10 +285,14 @@ def mul : SDNode<"ISD::MUL" , SDTIntBinOp,
|
||||
[SDNPCommutative, SDNPAssociative]>;
|
||||
def mulhs : SDNode<"ISD::MULHS" , SDTIntBinOp, [SDNPCommutative]>;
|
||||
def mulhu : SDNode<"ISD::MULHU" , SDTIntBinOp, [SDNPCommutative]>;
|
||||
def smullohi : SDNode<"ISD::SMUL_LOHI" , SDTIntBinHiLoOp, [SDNPCommutative]>;
|
||||
def umullohi : SDNode<"ISD::UMUL_LOHI" , SDTIntBinHiLoOp, [SDNPCommutative]>;
|
||||
def sdiv : SDNode<"ISD::SDIV" , SDTIntBinOp>;
|
||||
def udiv : SDNode<"ISD::UDIV" , SDTIntBinOp>;
|
||||
def srem : SDNode<"ISD::SREM" , SDTIntBinOp>;
|
||||
def urem : SDNode<"ISD::UREM" , SDTIntBinOp>;
|
||||
def sdivrem : SDNode<"ISD::SDIVREM" , SDTIntBinHiLoOp>;
|
||||
def udivrem : SDNode<"ISD::UDIVREM" , SDTIntBinHiLoOp>;
|
||||
def srl : SDNode<"ISD::SRL" , SDTIntShiftOp>;
|
||||
def sra : SDNode<"ISD::SRA" , SDTIntShiftOp>;
|
||||
def shl : SDNode<"ISD::SHL" , SDTIntShiftOp>;
|
||||
|
Loading…
Reference in New Issue
Block a user