reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/CodeGen/SelectionDAG/SelectionDAG.cpp
 2434   unsigned BitWidth = Op.getScalarValueSizeInBits();
 2438   if (auto *C = dyn_cast<ConstantSDNode>(Op)) {
 2444   if (auto *C = dyn_cast<ConstantFPSDNode>(Op)) {
 2456   assert((!Op.getValueType().isVector() ||
 2457           NumElts == Op.getValueType().getVectorNumElements()) &&
 2463   unsigned Opcode = Op.getOpcode();
 2468     for (unsigned i = 0, e = Op.getNumOperands(); i != e; ++i) {
 2472       SDValue SrcOp = Op.getOperand(i);
 2496     const ShuffleVectorSDNode *SVN = cast<ShuffleVectorSDNode>(Op);
 2519       SDValue LHS = Op.getOperand(0);
 2528       SDValue RHS = Op.getOperand(1);
 2538     EVT SubVectorVT = Op.getOperand(0).getValueType();
 2540     unsigned NumSubVectors = Op.getNumOperands();
 2545         SDValue Sub = Op.getOperand(i);
 2559     SDValue Src = Op.getOperand(0);
 2560     SDValue Sub = Op.getOperand(1);
 2561     ConstantSDNode *SubIdx = dyn_cast<ConstantSDNode>(Op.getOperand(2));
 2593     SDValue Src = Op.getOperand(0);
 2594     ConstantSDNode *SubIdx = dyn_cast<ConstantSDNode>(Op.getOperand(1));
 2611     SDValue N0 = Op.getOperand(0);
 2619     SDValue N0 = Op.getOperand(0);
 2660       assert(Op.getValueType().isVector() && "Expected bitcast to vector");
 2689     Known = computeKnownBits(Op.getOperand(1), DemandedElts, Depth + 1);
 2690     Known2 = computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1);
 2698     Known = computeKnownBits(Op.getOperand(1), DemandedElts, Depth + 1);
 2699     Known2 = computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1);
 2707     Known = computeKnownBits(Op.getOperand(1), DemandedElts, Depth + 1);
 2708     Known2 = computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1);
 2718     Known = computeKnownBits(Op.getOperand(1), DemandedElts, Depth + 1);
 2719     Known2 = computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1);
 2740     Known2 = computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1);
 2743     Known2 = computeKnownBits(Op.getOperand(1), DemandedElts, Depth + 1);
 2753     Known = computeKnownBits(Op.getOperand(2), DemandedElts, Depth+1);
 2757     Known2 = computeKnownBits(Op.getOperand(1), DemandedElts, Depth+1);
 2764     Known = computeKnownBits(Op.getOperand(3), DemandedElts, Depth+1);
 2768     Known2 = computeKnownBits(Op.getOperand(2), DemandedElts, Depth+1);
 2777     if (Op.getResNo() != 1)
 2783     if (TLI->getBooleanContents(Op.getValueType().isVector(), false) ==
 2790     if (TLI->getBooleanContents(Op.getOperand(0).getValueType()) ==
 2796     if (const APInt *ShAmt = getValidShiftAmountConstant(Op)) {
 2797       Known = computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1);
 2806     if (const APInt *ShAmt = getValidShiftAmountConstant(Op)) {
 2807       Known = computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1);
 2813     } else if (const APInt *ShMinAmt = getValidMinimumShiftAmountConstant(Op)) {
 2819     if (const APInt *ShAmt = getValidShiftAmountConstant(Op)) {
 2820       Known = computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1);
 2829     if (ConstantSDNode *C = isConstOrConstSplat(Op.getOperand(2), DemandedElts)) {
 2835         Known = computeKnownBits(Op.getOperand(Opcode == ISD::FSHL ? 0 : 1),
 2842       Known = computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1);
 2843       Known2 = computeKnownBits(Op.getOperand(1), DemandedElts, Depth + 1);
 2860     EVT EVT = cast<VTSDNode>(Op.getOperand(1))->getVT();
 2876     Known = computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1);
 2896     Known2 = computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1);
 2905     Known2 = computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1);
 2913     Known2 = computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1);
 2920     LoadSDNode *LD = cast<LoadSDNode>(Op);
 2972     } else if (ISD::isZEXTLoad(Op.getNode()) && Op.getResNo() == 0) {
 2972     } else if (ISD::isZEXTLoad(Op.getNode()) && Op.getResNo() == 0) {
 2984     EVT InVT = Op.getOperand(0).getValueType();
 2986     Known = computeKnownBits(Op.getOperand(0), InDemandedElts, Depth + 1);
 2991     Known = computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1);
 2996     EVT InVT = Op.getOperand(0).getValueType();
 2998     Known = computeKnownBits(Op.getOperand(0), InDemandedElts, Depth + 1);
 3005     Known = computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1);
 3012     Known = computeKnownBits(Op.getOperand(0), Depth+1);
 3017     Known = computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1);
 3022     EVT VT = cast<VTSDNode>(Op.getOperand(1))->getVT();
 3024     Known = computeKnownBits(Op.getOperand(0), Depth+1);
 3035     if (Op.getResNo() == 1) {
 3037       if (TLI->getBooleanContents(Op.getOperand(0).getValueType()) ==
 3046     Known = computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1);
 3047     Known2 = computeKnownBits(Op.getOperand(1), DemandedElts, Depth + 1);
 3055     if (Op.getResNo() == 1) {
 3057       if (TLI->getBooleanContents(Op.getOperand(0).getValueType()) ==
 3067     assert(Op.getResNo() == 0 && "We only compute knownbits for the sum here.");
 3084     Known = computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1);
 3085     Known2 = computeKnownBits(Op.getOperand(1), DemandedElts, Depth + 1);
 3090     if (ConstantSDNode *Rem = isConstOrConstSplat(Op.getOperand(1))) {
 3094         Known2 = computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1);
 3114     if (ConstantSDNode *Rem = isConstOrConstSplat(Op.getOperand(1))) {
 3118         Known2 = computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1);
 3129     Known = computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1);
 3130     Known2 = computeKnownBits(Op.getOperand(1), DemandedElts, Depth + 1);
 3139     Known = computeKnownBits(Op.getOperand(0), Depth+1);
 3140     const unsigned Index = Op.getConstantOperandVal(1);
 3141     const unsigned EltBitWidth = Op.getValueSizeInBits();
 3152     SDValue InVec = Op.getOperand(0);
 3153     SDValue EltNo = Op.getOperand(1);
 3176     SDValue InVec = Op.getOperand(0);
 3177     SDValue InVal = Op.getOperand(1);
 3178     SDValue EltNo = Op.getOperand(2);
 3212     Known2 = computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1);
 3218     Known2 = computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1);
 3224     Known2 = computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1);
 3243     Known = computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1);
 3244     Known2 = computeKnownBits(Op.getOperand(1), DemandedElts, Depth + 1);
 3257     Known = computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1);
 3258     Known2 = computeKnownBits(Op.getOperand(1), DemandedElts, Depth + 1);
 3276     if ((CstLow = isConstOrConstSplat(Op.getOperand(1), DemandedElts)))
 3277       if (Op.getOperand(0).getOpcode() == (IsMax ? ISD::SMIN : ISD::SMAX))
 3279             isConstOrConstSplat(Op.getOperand(0).getOperand(1), DemandedElts);
 3302     Known = computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1);
 3304     Known2 = computeKnownBits(Op.getOperand(1), DemandedElts, Depth + 1);
 3311     TLI->computeKnownBitsForFrameIndex(Op, Known, DemandedElts, *this, Depth);
 3322     TLI->computeKnownBitsForTargetNode(Op, Known, DemandedElts, *this, Depth);