Lines Matching refs:N2C
2542 if (ConstantSDNode *N2C = dyn_cast<ConstantSDNode>(N2)) { in FoldSetCC() local
2543 const APInt &C2 = N2C->getAPIntValue(); in FoldSetCC()
6551 SDNode *N2C = isConstantIntBuildVectorOrConstantInt(N2); in canonicalizeCommutativeBinop() local
6554 if ((N1C && !N2C) || (N1CFP && !N2CFP)) in canonicalizeCommutativeBinop()
6573 auto *N2C = dyn_cast<ConstantSDNode>(N2); in getNode() local
6635 if (N2C && (N1.getOpcode() == ISD::VSCALE) && Flags.hasNoSignedWrap()) { in getNode()
6637 const APInt &N2CImm = N2C->getAPIntValue(); in getNode()
6703 if (N2C && (N1.getOpcode() == ISD::VSCALE) && Flags.hasNoSignedWrap()) { in getNode()
6705 const APInt &ShiftImm = N2C->getAPIntValue(); in getNode()
6742 N2C && (N2C->getZExtValue() == 0 || N2C->getZExtValue() == 1) && in getNode()
6837 if (N2C && N1.getValueType().isFixedLengthVector() && in getNode()
6838 N2C->getAPIntValue().uge(N1.getValueType().getVectorNumElements())) in getNode()
6845 if (N2C && N1.getOpcode() == ISD::CONCAT_VECTORS && in getNode()
6850 N1.getOperand(N2C->getZExtValue() / Factor), in getNode()
6851 getVectorIdxConstant(N2C->getZExtValue() % Factor, DL)); in getNode()
6856 if (N2C && (N1.getOpcode() == ISD::BUILD_VECTOR || in getNode()
6862 N1.getOpcode() == ISD::BUILD_VECTOR ? N2C->getZExtValue() : 0; in getNode()
6883 if (N1Op2C && N2C) { in getNode()
6884 if (N1Op2C->getZExtValue() == N2C->getZExtValue()) { in getNode()
6913 assert(N2C && (unsigned)N2C->getZExtValue() < 2 && "Bad EXTRACT_ELEMENT!"); in getNode()
6923 return N1.getOperand(N2C->getZExtValue()); in getNode()
6928 unsigned Shift = ElementSize * N2C->getZExtValue(); in getNode()
6944 assert(N2C && "Extract subvector index must be a constant"); in getNode()
6946 (VT.getVectorMinNumElements() + N2C->getZExtValue()) <= in getNode()
6949 assert(N2C->getAPIntValue().getBitWidth() == in getNode()
6966 return N1.getOperand(N2C->getZExtValue() / Factor); in getNode()