mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-11 06:38:20 +00:00
Reformat.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236601 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1030,7 +1030,7 @@ public:
|
|||||||
SDNodeFlags Flags;
|
SDNodeFlags Flags;
|
||||||
BinaryWithFlagsSDNode(unsigned Opc, unsigned Order, DebugLoc dl, SDVTList VTs,
|
BinaryWithFlagsSDNode(unsigned Opc, unsigned Order, DebugLoc dl, SDVTList VTs,
|
||||||
SDValue X, SDValue Y)
|
SDValue X, SDValue Y)
|
||||||
: BinarySDNode(Opc, Order, dl, VTs, X, Y), Flags() { }
|
: BinarySDNode(Opc, Order, dl, VTs, X, Y), Flags() {}
|
||||||
static bool classof(const SDNode *N) {
|
static bool classof(const SDNode *N) {
|
||||||
return isBinOpWithFlags(N->getOpcode());
|
return isBinOpWithFlags(N->getOpcode());
|
||||||
}
|
}
|
||||||
|
@ -515,10 +515,9 @@ static void AddNodeIDCustom(FoldingSetNodeID &ID, const SDNode *N) {
|
|||||||
case ISD::SUB:
|
case ISD::SUB:
|
||||||
case ISD::SHL: {
|
case ISD::SHL: {
|
||||||
const BinaryWithFlagsSDNode *BinNode = cast<BinaryWithFlagsSDNode>(N);
|
const BinaryWithFlagsSDNode *BinNode = cast<BinaryWithFlagsSDNode>(N);
|
||||||
AddBinaryNodeIDCustom(ID, N->getOpcode(),
|
AddBinaryNodeIDCustom(
|
||||||
BinNode->Flags.hasNoUnsignedWrap(),
|
ID, N->getOpcode(), BinNode->Flags.hasNoUnsignedWrap(),
|
||||||
BinNode->Flags.hasNoSignedWrap(),
|
BinNode->Flags.hasNoSignedWrap(), BinNode->Flags.hasExact());
|
||||||
BinNode->Flags.hasExact());
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case ISD::ATOMIC_CMP_SWAP:
|
case ISD::ATOMIC_CMP_SWAP:
|
||||||
|
@ -2658,8 +2658,8 @@ SDValue TargetLowering::BuildExactSDIV(SDValue Op1, SDValue Op2, SDLoc dl,
|
|||||||
unsigned ShAmt = d.countTrailingZeros();
|
unsigned ShAmt = d.countTrailingZeros();
|
||||||
if (ShAmt) {
|
if (ShAmt) {
|
||||||
// TODO: For UDIV use SRL instead of SRA.
|
// TODO: For UDIV use SRL instead of SRA.
|
||||||
SDValue Amt = DAG.getConstant(ShAmt, dl,
|
SDValue Amt =
|
||||||
getShiftAmountTy(Op1.getValueType()));
|
DAG.getConstant(ShAmt, dl, getShiftAmountTy(Op1.getValueType()));
|
||||||
Op1 = DAG.getNode(ISD::SRA, dl, Op1.getValueType(), Op1, Amt, false, false,
|
Op1 = DAG.getNode(ISD::SRA, dl, Op1.getValueType(), Op1, Amt, false, false,
|
||||||
true);
|
true);
|
||||||
d = d.ashr(ShAmt);
|
d = d.ashr(ShAmt);
|
||||||
|
Reference in New Issue
Block a user