mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-04 21:30:49 +00:00
Add a missing and useful pat frag
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26249 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
52221f7b16
commit
c22f357b78
@ -164,7 +164,6 @@ def SDTTruncStore : SDTypeProfile<0, 4, [ // truncstore
|
|||||||
SDTCisPtrTy<1>, SDTCisVT<2, OtherVT>, SDTCisVT<3, OtherVT>
|
SDTCisPtrTy<1>, SDTCisVT<2, OtherVT>, SDTCisVT<3, OtherVT>
|
||||||
]>;
|
]>;
|
||||||
|
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// Selection DAG Node Properties.
|
// Selection DAG Node Properties.
|
||||||
//
|
//
|
||||||
@ -239,6 +238,14 @@ def or : SDNode<"ISD::OR" , SDTIntBinOp,
|
|||||||
[SDNPCommutative, SDNPAssociative]>;
|
[SDNPCommutative, SDNPAssociative]>;
|
||||||
def xor : SDNode<"ISD::XOR" , SDTIntBinOp,
|
def xor : SDNode<"ISD::XOR" , SDTIntBinOp,
|
||||||
[SDNPCommutative, SDNPAssociative]>;
|
[SDNPCommutative, SDNPAssociative]>;
|
||||||
|
def addc : SDNode<"ISD::ADDC" , SDTIntBinOp,
|
||||||
|
[SDNPCommutative, SDNPOutFlag]>;
|
||||||
|
def adde : SDNode<"ISD::ADDE" , SDTIntBinOp,
|
||||||
|
[SDNPCommutative, SDNPOutFlag, SDNPInFlag]>;
|
||||||
|
def subc : SDNode<"ISD::SUBC" , SDTIntBinOp,
|
||||||
|
[SDNPOutFlag]>;
|
||||||
|
def sube : SDNode<"ISD::SUBE" , SDTIntBinOp,
|
||||||
|
[SDNPOutFlag, SDNPInFlag]>;
|
||||||
|
|
||||||
def sext_inreg : SDNode<"ISD::SIGN_EXTEND_INREG", SDTExtInreg>;
|
def sext_inreg : SDNode<"ISD::SIGN_EXTEND_INREG", SDTExtInreg>;
|
||||||
def bswap : SDNode<"ISD::BSWAP" , SDTIntUnaryOp>;
|
def bswap : SDNode<"ISD::BSWAP" , SDTIntUnaryOp>;
|
||||||
@ -347,7 +354,7 @@ class PatLeaf<dag frag, code pred = [{}], SDNodeXForm xform = NOOP_SDNodeXForm>
|
|||||||
// Leaf fragments.
|
// Leaf fragments.
|
||||||
|
|
||||||
def immAllOnes : PatLeaf<(imm), [{ return N->isAllOnesValue(); }]>;
|
def immAllOnes : PatLeaf<(imm), [{ return N->isAllOnesValue(); }]>;
|
||||||
|
def immZero : PatLeaf<(imm), [{ return N->isNullValue(); }]>;
|
||||||
def vtInt : PatLeaf<(vt), [{ return MVT::isInteger(N->getVT()); }]>;
|
def vtInt : PatLeaf<(vt), [{ return MVT::isInteger(N->getVT()); }]>;
|
||||||
def vtFP : PatLeaf<(vt), [{ return MVT::isFloatingPoint(N->getVT()); }]>;
|
def vtFP : PatLeaf<(vt), [{ return MVT::isFloatingPoint(N->getVT()); }]>;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user