Lines Matching refs:N0C

1661   ConstantSDNode *N0C = getAsNonOpaqueConstant(N0);  in visitADD()  local
1663 if (N0C && N1C) in visitADD()
1664 return DAG.FoldConstantArithmetic(ISD::ADD, SDLoc(N), VT, N0C, N1C); in visitADD()
1681 if (ConstantSDNode *N0C = getAsNonOpaqueConstant(N0.getOperand(0))) { in visitADD() local
1685 N0C->getAPIntValue(), DL, VT), in visitADD()
1803 ConstantSDNode *N0C = dyn_cast<ConstantSDNode>(N0); in visitADDC() local
1805 if (N0C && !N1C) in visitADDC()
1838 ConstantSDNode *N0C = dyn_cast<ConstantSDNode>(N0); in visitADDE() local
1840 if (N0C && !N1C) in visitADDE()
1883 ConstantSDNode *N0C = getAsNonOpaqueConstant(N0); in visitSUB() local
1885 if (N0C && N1C) in visitSUB()
1886 return DAG.FoldConstantArithmetic(ISD::SUB, SDLoc(N), VT, N0C, N1C); in visitSUB()
1908 if (N1.getOpcode() == ISD::ADD && N0C && N1C1) { in visitSUB()
1910 SDValue NewC = DAG.getConstant(N0C->getAPIntValue() - N1C1->getAPIntValue(), in visitSUB()
2240 ConstantSDNode *N0C = isConstOrConstSplat(N0); in visitSDIV() local
2242 if (N0C && N1C && !N0C->isOpaque() && !N1C->isOpaque()) in visitSDIV()
2243 return DAG.FoldConstantArithmetic(ISD::SDIV, DL, VT, N0C, N1C); in visitSDIV()
2339 ConstantSDNode *N0C = isConstOrConstSplat(N0); in visitUDIV() local
2341 if (N0C && N1C) in visitUDIV()
2343 N0C, N1C)) in visitUDIV()
2400 ConstantSDNode *N0C = isConstOrConstSplat(N0); in visitREM() local
2402 if (N0C && N1C) in visitREM()
2403 if (SDValue Folded = DAG.FoldConstantArithmetic(Opcode, DL, VT, N0C, N1C)) in visitREM()
2695 ConstantSDNode *N0C = getAsNonOpaqueConstant(N0); in visitIMINMAX() local
2697 if (N0C && N1C) in visitIMINMAX()
2698 return DAG.FoldConstantArithmetic(N->getOpcode(), SDLoc(N), VT, N0C, N1C); in visitIMINMAX()
3043 ConstantSDNode *N0C = getAsNonOpaqueConstant(N0); in visitAND() local
3045 if (N0C && N1C && !N1C->isOpaque()) in visitAND()
3046 return DAG.FoldConstantArithmetic(ISD::AND, SDLoc(N), VT, N0C, N1C); in visitAND()
3759 ConstantSDNode *N0C = getAsNonOpaqueConstant(N0); in visitOR() local
3761 if (N0C && N1C && !N1C->isOpaque()) in visitOR()
3762 return DAG.FoldConstantArithmetic(ISD::OR, SDLoc(N), VT, N0C, N1C); in visitOR()
4105 ConstantSDNode *N0C = getAsNonOpaqueConstant(N0); in visitXOR() local
4107 if (N0C && N1C) in visitXOR()
4108 return DAG.FoldConstantArithmetic(ISD::XOR, SDLoc(N), VT, N0C, N1C); in visitXOR()
4389 ConstantSDNode *N0C = getAsNonOpaqueConstant(N0); in visitSHL() local
4390 if (N0C && N1C && !N1C->isOpaque()) in visitSHL()
4391 return DAG.FoldConstantArithmetic(ISD::SHL, SDLoc(N), VT, N0C, N1C); in visitSHL()
4583 ConstantSDNode *N0C = getAsNonOpaqueConstant(N0); in visitSRA() local
4584 if (N0C && N1C && !N1C->isOpaque()) in visitSRA()
4585 return DAG.FoldConstantArithmetic(ISD::SRA, SDLoc(N), VT, N0C, N1C); in visitSRA()
4730 ConstantSDNode *N0C = getAsNonOpaqueConstant(N0); in visitSRL() local
4731 if (N0C && N1C && !N1C->isOpaque()) in visitSRL()
4732 return DAG.FoldConstantArithmetic(ISD::SRL, SDLoc(N), VT, N0C, N1C); in visitSRL()
5025 if (const ConstantSDNode *N0C = dyn_cast<const ConstantSDNode>(N0)) { in visitSELECT() local
5028 return !N0C->isNullValue() ? N1 : N2; in visitSELECT()