| /llvm-project-15.0.7/llvm/lib/Target/RISCV/ |
| H A D | RISCVISelDAGToDAG.cpp | 622 if (!N1C) in Select() 628 unsigned ShAmt = N1C->getZExtValue(); in Select() 652 if (!N1C) in Select() 658 unsigned ShAmt = N1C->getZExtValue(); in Select() 721 if (!N1C) in Select() 726 unsigned ShAmt = N1C->getZExtValue(); in Select() 744 if (!N1C) in Select() 760 uint64_t C1 = N1C->getZExtValue(); in Select() 767 bool IsCANDI = isInt<6>(N1C->getSExtValue()); in Select() 936 if (!N1C || !N1C->hasOneUse()) in Select() [all …]
|
| H A D | RISCVISelLowering.cpp | 7828 auto *N1C = dyn_cast<ConstantSDNode>(N1->getOperand(1)); in transformAddShlImm() local 7829 if (!N0C || !N1C) in transformAddShlImm() 7832 int64_t C1 = N1C->getSExtValue(); in transformAddShlImm() 8045 auto *N1C = dyn_cast<ConstantSDNode>(N->getOperand(1)); in transformAddImmMulImm() local 8046 if (!N0C || !N1C) in transformAddImmMulImm() 8054 int64_t C1 = N1C->getSExtValue(); in transformAddImmMulImm() 8187 auto *N1C = dyn_cast<ConstantSDNode>(N1); in performSETCCCombine() local 8188 if (!N1C) in performSETCCCombine() 8208 const APInt &C1 = N1C->getAPIntValue(); in performSETCCCombine()
|
| H A D | RISCVInstrInfo.td | 1159 if (auto *N1C = dyn_cast<ConstantSDNode>(N->getOperand(1))) 1160 if (N1C->hasOneUse())
|
| /llvm-project-15.0.7/llvm/lib/Target/XCore/ |
| H A D | XCoreISelLowering.cpp | 1636 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in PerformDAGCombine() local 1640 if (N0C && !N1C) in PerformDAGCombine() 1644 if (N0C && N0C->isZero() && N1C && N1C->isZero()) { in PerformDAGCombine() 1654 if (N1C && N1C->isZero() && N->hasNUsesOfValue(0, 1)) { in PerformDAGCombine() 1672 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in PerformDAGCombine() local 1676 if (N0C && N0C->isZero() && N1C && N1C->isZero()) { in PerformDAGCombine() 1691 if (N1C && N1C->isZero() && N->hasNUsesOfValue(0, 1)) { in PerformDAGCombine() 1710 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in PerformDAGCombine() local 1714 if ((N0C && !N1C) || in PerformDAGCombine() 1715 (N0C && N1C && N0C->getZExtValue() < N1C->getZExtValue())) in PerformDAGCombine() [all …]
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | DAGCombiner.cpp | 3451 if (N1C) { in visitSUB() 4320 if (N1C && N1C->isAllOnes()) in visitSDIV() 4324 if (N1C && N1C->getAPIntValue().isMinSignedValue()) in visitSDIV() 4468 if (N1C && N1C->isAllOnes()) in visitUDIV() 5000 if (N1C && N1C->getAPIntValue() == 2 && in visitMULO() 6660 if (!N1C) in isBSwapHWordElement() 9110 if (N1C && !N1C->isOpaque()) in visitSHL() 9427 if (N1C && !N1C->isOpaque()) in visitSRA() 9467 if (N1C && in visitSRL() 9653 if (N1C && !N1C->isOpaque()) in visitSRL() [all …]
|
| H A D | TargetLowering.cpp | 938 if (!N1C || !N1C->isOne()) in combineShiftToAVG() 3844 assert(isConstOrConstSplat(N1C) && in optimizeSetCCByHoistingAndByConstFromLogicalShift() 4177 if (auto *N1C = isConstOrConstSplat(N1)) { in SimplifySetCC() local 4178 const APInt &C1 = N1C->getAPIntValue(); in SimplifySetCC() 4212 const APInt &C1 = N1C->getAPIntValue(); in SimplifySetCC() 4437 } else if ((N1C->isZero() || N1C->isOne()) && in SimplifySetCC() 4483 } else if (N1C->isOne()) { in SimplifySetCC() 4544 N1C && N1C->isAllOnes()) { in SimplifySetCC() 4557 if (auto *N1C = isConstOrConstSplat(N1)) { in SimplifySetCC() local 4558 const APInt &C1 = N1C->getAPIntValue(); in SimplifySetCC() [all …]
|
| H A D | SelectionDAG.cpp | 2366 if (ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1)) { in FoldSetCC() local 2367 const APInt &C1 = N1C->getAPIntValue(); in FoldSetCC() 5823 if (ConstantFPSDNode *N1C = isConstOrConstSplatFP(N1, /*AllowUndefs*/ true)) in foldConstantFPMath() local 5824 if (N1C && N1C->getValueAPF().isNegZero() && N2.isUndef()) in foldConstantFPMath() 5907 auto *N1C = dyn_cast<ConstantSDNode>(N1); in getNode() local 6109 if (N1C) { in getNode() 6110 const APInt &Val = N1C->getAPIntValue(); in getNode() 6248 if (N1C) { in getNode() 6251 const APInt &Val = N1C->getAPIntValue(); in getNode()
|
| /llvm-project-15.0.7/llvm/lib/Target/ARM/ |
| H A D | ARMISelDAGToDAG.cpp | 3830 auto *N1C = dyn_cast<ConstantSDNode>(N->getOperand(1)); in Select() local 3831 if (N1C && N1C->hasOneUse() && Subtarget->isThumb()) { in Select() 3832 uint32_t Imm = (uint32_t) N1C->getZExtValue(); in Select() 3846 CurDAG->getConstant(~N1C->getZExtValue(), dl, MVT::i32); in Select() 3883 N1C = dyn_cast<ConstantSDNode>(N1); in Select() 3884 if (!N1C) in Select() 3891 unsigned N1CVal = N1C->getZExtValue(); in Select()
|
| H A D | ARMISelLowering.cpp | 14076 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N->getOperand(1)); in CombineANDShift() local 14077 if (!N1C) in CombineANDShift() 14080 uint32_t C1 = (uint32_t)N1C->getZExtValue(); in CombineANDShift() 14319 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in PerformORCombineToBFI() local 14320 if (N1C) { in PerformORCombineToBFI() 14321 unsigned Val = N1C->getZExtValue(); in PerformORCombineToBFI()
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/ |
| H A D | TargetLowering.h | 4975 EVT SCCVT, SDValue N0, SDValue N1C, ISD::CondCode Cond,
|
| /llvm-project-15.0.7/llvm/lib/Target/PowerPC/ |
| H A D | PPCISelDAGToDAG.cpp | 5576 if (ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N->getOperand(1))) in Select() local 5579 if (N1C->isZero() && N3C->isZero() && N2C->getZExtValue() == 1ULL && in Select()
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86ISelLowering.cpp | 46565 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in combineShiftLeft() local 46571 N1C && N0.getOpcode() == ISD::AND && in combineShiftLeft() 46575 Mask <<= N1C->getAPIntValue(); in combineShiftLeft() 50956 auto *N1C = dyn_cast<ConstantSDNode>(N1); in combineXor() local 50958 if (N1C && !N1C->isOpaque() && N001C && !N001C->isOpaque()) { in combineXor()
|