/freebsd/contrib/llvm-project/llvm/lib/Target/XCore/ |
H A D | XCoreISelLowering.cpp | 1541 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in PerformDAGCombine() local 1545 if (N0C && !N1C) in PerformDAGCombine() 1549 if (N0C && N0C->isZero() && N1C && N1C->isZero()) { in PerformDAGCombine() 1559 if (N1C && N1C->isZero() && N->hasNUsesOfValue(0, 1)) { in PerformDAGCombine() 1577 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in PerformDAGCombine() local 1581 if (N0C && N0C->isZero() && N1C && N1C->isZero()) { in PerformDAGCombine() 1596 if (N1C && N1C->isZero() && N->hasNUsesOfValue(0, 1)) { in PerformDAGCombine() 1615 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in PerformDAGCombine() local 1619 if ((N0C && !N1C) || in PerformDAGCombine() 1620 (N0C && N1C && N0C->getZExtValue() < N1C->getZExtValue())) in PerformDAGCombine() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVISelDAGToDAG.cpp | 687 auto *N1C = dyn_cast<ConstantSDNode>(Node->getOperand(1)); in trySignedBitfieldExtract() local 688 if (!N1C) in trySignedBitfieldExtract() 704 const unsigned RightShAmt = N1C->getZExtValue(); in trySignedBitfieldExtract() 1073 auto *N1C = dyn_cast<ConstantSDNode>(Node->getOperand(1)); in Select() local 1074 if (!N1C) in Select() 1080 unsigned ShAmt = N1C->getZExtValue(); in Select() 1103 auto *N1C = dyn_cast<ConstantSDNode>(Node->getOperand(1)); in Select() local 1104 if (!N1C) in Select() 1109 unsigned ShAmt = N1C->getZExtValue(); in Select() 1187 auto *N1C = dyn_cast<ConstantSDNode>(Node->getOperand(1)); in Select() local [all …]
|
H A D | RISCVInstrInfo.td | 1234 if (auto *N1C = dyn_cast<ConstantSDNode>(N->getOperand(1))) 1235 return N1C->hasOneUse();
|
H A D | RISCVISelLowering.cpp | 13169 auto *N1C = dyn_cast<ConstantSDNode>(N1->getOperand(1)); in transformAddShlImm() 13170 if (!N0C || !N1C) in transformAddShlImm() 13173 int64_t C1 = N1C->getSExtValue(); in transformAddShlImm() 13311 auto *N1C = dyn_cast<ConstantSDNode>(N->getOperand(1)); in transformAddImmMulImm() 13312 if (!N0C || !N1C) in transformAddImmMulImm() 13320 int64_t C1 = N1C->getSExtValue(); in transformAddImmMulImm() 14185 auto *N1C = dyn_cast<ConstantSDNode>(N1); in performSETCCCombine() 14186 if (!N1C) in performSETCCCombine() 14206 const APInt &C1 = N1C->getAPIntValue(); in performSETCCCombine() 13166 auto *N1C = dyn_cast<ConstantSDNode>(N1->getOperand(1)); transformAddShlImm() local 13308 auto *N1C = dyn_cast<ConstantSDNode>(N->getOperand(1)); transformAddImmMulImm() local 14182 auto *N1C = dyn_cast<ConstantSDNode>(N1); performSETCCCombine() local
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | DAGCombiner.cpp | 3237 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in visitADDC() local 3238 if (N0C && !N1C) in visitADDC() 3379 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in visitADDE() local 3380 if (N0C && !N1C) in visitADDE() 3399 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in visitUADDO_CARRY() local 3400 if (N0C && !N1C) in visitUADDO_CARRY() 3688 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in visitSADDO_CARRY() local 3689 if (N0C && !N1C) in visitSADDO_CARRY() 3831 if (ConstantSDNode *N1C = getAsNonOpaqueConstant(N1)) in visitSUB() local 3833 DAG.getConstant(-N1C->getAPIntValue(), DL, VT)); in visitSUB() [all …]
|
H A D | TargetLowering.cpp | 962 ConstantSDNode *N1C = isConstOrConstSplat(Op.getOperand(1), DemandedElts); in combineShiftToAVG() local 963 if (!N1C || !N1C->isOne()) in combineShiftToAVG() 4164 EVT SCCVT, SDValue N0, SDValue N1C, ISD::CondCode Cond, in optimizeSetCCByHoistingAndByConstFromLogicalShift() argument 4166 assert(isConstOrConstSplat(N1C) && isConstOrConstSplat(N1C)->isZero() && in optimizeSetCCByHoistingAndByConstFromLogicalShift() 4228 SDValue T2 = DAG.getSetCC(DL, SCCVT, T1, N1C, Cond); in optimizeSetCCByHoistingAndByConstFromLogicalShift() 4503 if (auto *N1C = isConstOrConstSplat(N1)) { in SimplifySetCC() local 4504 const APInt &C1 = N1C->getAPIntValue(); in SimplifySetCC() 4554 if (auto *N1C = dyn_cast<ConstantSDNode>(N1.getNode())) { in SimplifySetCC() local 4555 const APInt &C1 = N1C->getAPIntValue(); in SimplifySetCC() 4626 isExtendedTrueVal(N1C, N0->getValueType(0), SExt))) { in SimplifySetCC() [all …]
|
H A D | SelectionDAG.cpp | 2585 if (ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1)) { in FoldSetCC() local 2586 const APInt &C1 = N1C->getAPIntValue(); in FoldSetCC() 6817 if (ConstantFPSDNode *N1C = isConstOrConstSplatFP(N1, /*AllowUndefs*/ true)) in foldConstantFPMath() local 6818 if (N1C && N1C->getValueAPF().isNegZero() && N2.isUndef()) in foldConstantFPMath() 6880 SDNode *N1C = isConstantIntBuildVectorOrConstantInt(N1); in canonicalizeCommutativeBinop() local 6884 if ((N1C && !N2C) || (N1CFP && !N2CFP)) in canonicalizeCommutativeBinop() 6902 auto *N1C = dyn_cast<ConstantSDNode>(N1); in getNode() local 7129 if (N1C) { in getNode() 7130 const APInt &Val = N1C->getAPIntValue(); in getNode() 7275 if (N1C) { in getNode() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMISelDAGToDAG.cpp | 3849 auto *N1C = dyn_cast<ConstantSDNode>(N->getOperand(1)); in Select() local 3850 if (N1C && N1C->hasOneUse() && Subtarget->isThumb()) { in Select() 3851 uint32_t Imm = (uint32_t) N1C->getZExtValue(); in Select() 3865 CurDAG->getConstant(~N1C->getZExtValue(), dl, MVT::i32); in Select() 3902 N1C = dyn_cast<ConstantSDNode>(N1); in Select() 3903 if (!N1C) in Select() 3910 unsigned N1CVal = N1C->getZExtValue(); in Select()
|
H A D | ARMISelLowering.cpp | 14310 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N->getOperand(1)); in CombineANDShift() local 14311 if (!N1C) in CombineANDShift() 14314 uint32_t C1 = (uint32_t)N1C->getZExtValue(); in CombineANDShift() 14561 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in PerformORCombineToBFI() local 14562 if (N1C) { in PerformORCombineToBFI() 14563 unsigned Val = N1C->getZExtValue(); in PerformORCombineToBFI()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/ |
H A D | LoongArchInstrInfo.td | 1113 if (auto *N1C = dyn_cast<ConstantSDNode>(N->getOperand(1))) 1114 return N1C->hasOneUse();
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | TargetLowering.h | 5605 EVT SCCVT, SDValue N0, SDValue N1C, ISD::CondCode Cond,
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86ISelLowering.cpp | 48106 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in combineShiftLeft() local 48135 N1C && N0.getOpcode() == ISD::AND && in combineShiftLeft() 48139 Mask <<= N1C->getAPIntValue(); in combineShiftLeft() 49912 ConstantSDNode *N1C = isConstOrConstSplat(N1, /*AllowUndefs*/ true, in combineAnd() local 49917 if (N1C && N01C) { in combineAnd() 49919 const APInt &AndC = N1C->getAPIntValue(); in combineAnd() 50646 if (auto *N1C = dyn_cast<ConstantSDNode>(N1)) { in combineOrXorWithSETCC() local 50648 bool N1COdd = N1C->getZExtValue() & 1; in combineOrXorWithSETCC() 53115 auto *N1C = dyn_cast<ConstantSDNode>(N1); in combineXor() local 53117 if (N1C && !N1C->isOpaque() && N001C && !N001C->isOpaque()) { in combineXor()
|