| /openbsd/src/gnu/llvm/llvm/lib/Target/XCore/ |
| D | XCoreISelLowering.cpp | 1631 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in PerformDAGCombine() local 1635 if (N0C && !N1C) in PerformDAGCombine() 1639 if (N0C && N0C->isZero() && N1C && N1C->isZero()) { in PerformDAGCombine() 1649 if (N1C && N1C->isZero() && N->hasNUsesOfValue(0, 1)) { in PerformDAGCombine() 1667 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in PerformDAGCombine() local 1671 if (N0C && N0C->isZero() && N1C && N1C->isZero()) { in PerformDAGCombine() 1686 if (N1C && N1C->isZero() && N->hasNUsesOfValue(0, 1)) { in PerformDAGCombine() 1705 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in PerformDAGCombine() local 1709 if ((N0C && !N1C) || in PerformDAGCombine() 1710 (N0C && N1C && N0C->getZExtValue() < N1C->getZExtValue())) in PerformDAGCombine() [all …]
|
| /openbsd/src/gnu/llvm/llvm/lib/Target/RISCV/ |
| D | RISCVISelDAGToDAG.cpp | 716 auto *N1C = dyn_cast<ConstantSDNode>(Node->getOperand(1)); in Select() local 717 if (!N1C) in Select() 723 unsigned ShAmt = N1C->getZExtValue(); in Select() 746 auto *N1C = dyn_cast<ConstantSDNode>(Node->getOperand(1)); in Select() local 747 if (!N1C) in Select() 752 unsigned ShAmt = N1C->getZExtValue(); in Select() 826 auto *N1C = dyn_cast<ConstantSDNode>(Node->getOperand(1)); in Select() local 827 if (!N1C) in Select() 832 unsigned ShAmt = N1C->getZExtValue(); in Select() 855 auto *N1C = dyn_cast<ConstantSDNode>(Node->getOperand(1)); in Select() local [all …]
|
| D | RISCVISelLowering.cpp | 8283 auto *N1C = dyn_cast<ConstantSDNode>(N1->getOperand(1)); in transformAddShlImm() local 8284 if (!N0C || !N1C) in transformAddShlImm() 8287 int64_t C1 = N1C->getSExtValue(); in transformAddShlImm() 8411 auto *N1C = dyn_cast<ConstantSDNode>(N->getOperand(1)); in transformAddImmMulImm() local 8412 if (!N0C || !N1C) in transformAddImmMulImm() 8420 int64_t C1 = N1C->getSExtValue(); in transformAddImmMulImm() 8902 auto *N1C = dyn_cast<ConstantSDNode>(N1); in performSETCCCombine() local 8903 if (!N1C) in performSETCCCombine() 8923 const APInt &C1 = N1C->getAPIntValue(); in performSETCCCombine()
|
| D | RISCVInstrInfo.td | 1212 if (auto *N1C = dyn_cast<ConstantSDNode>(N->getOperand(1))) 1213 if (N1C->hasOneUse())
|
| /openbsd/src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/ |
| D | DAGCombiner.cpp | 2916 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in visitADDC() local 2917 if (N0C && !N1C) in visitADDC() 3053 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in visitADDE() local 3054 if (N0C && !N1C) in visitADDE() 3073 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in visitADDCARRY() local 3074 if (N0C && !N1C) in visitADDCARRY() 3123 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in visitSADDO_CARRY() local 3124 if (N0C && !N1C) in visitSADDO_CARRY() 3478 ConstantSDNode *N1C = getAsNonOpaqueConstant(N1); in visitSUB() local 3481 if (N1C) { in visitSUB() [all …]
|
| D | TargetLowering.cpp | 941 ConstantSDNode *N1C = isConstOrConstSplat(Op.getOperand(1), DemandedElts); in combineShiftToAVG() local 942 if (!N1C || !N1C->isOne()) in combineShiftToAVG() 3912 EVT SCCVT, SDValue N0, SDValue N1C, ISD::CondCode Cond, in optimizeSetCCByHoistingAndByConstFromLogicalShift() argument 3914 assert(isConstOrConstSplat(N1C) && in optimizeSetCCByHoistingAndByConstFromLogicalShift() 3915 isConstOrConstSplat(N1C)->getAPIntValue().isZero() && in optimizeSetCCByHoistingAndByConstFromLogicalShift() 3977 SDValue T2 = DAG.getSetCC(DL, SCCVT, T1, N1C, Cond); in optimizeSetCCByHoistingAndByConstFromLogicalShift() 4246 if (auto *N1C = isConstOrConstSplat(N1)) { in SimplifySetCC() local 4247 const APInt &C1 = N1C->getAPIntValue(); in SimplifySetCC() 4297 if (auto *N1C = dyn_cast<ConstantSDNode>(N1.getNode())) { in SimplifySetCC() local 4298 const APInt &C1 = N1C->getAPIntValue(); in SimplifySetCC() [all …]
|
| D | SelectionDAG.cpp | 2428 if (ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1)) { in FoldSetCC() local 2429 const APInt &C1 = N1C->getAPIntValue(); in FoldSetCC() 6044 if (ConstantFPSDNode *N1C = isConstOrConstSplatFP(N1, /*AllowUndefs*/ true)) in foldConstantFPMath() local 6045 if (N1C && N1C->getValueAPF().isNegZero() && N2.isUndef()) in foldConstantFPMath() 6106 SDNode *N1C = isConstantIntBuildVectorOrConstantInt(N1); in canonicalizeCommutativeBinop() local 6110 if ((N1C && !N2C) || (N1CFP && !N2CFP)) in canonicalizeCommutativeBinop() 6128 auto *N1C = dyn_cast<ConstantSDNode>(N1); in getNode() local 6336 if (N1C) { in getNode() 6337 const APInt &Val = N1C->getAPIntValue(); in getNode() 6475 if (N1C) { in getNode() [all …]
|
| /openbsd/src/gnu/llvm/llvm/lib/Target/ARM/ |
| D | ARMISelDAGToDAG.cpp | 3853 auto *N1C = dyn_cast<ConstantSDNode>(N->getOperand(1)); in Select() local 3854 if (N1C && N1C->hasOneUse() && Subtarget->isThumb()) { in Select() 3855 uint32_t Imm = (uint32_t) N1C->getZExtValue(); in Select() 3869 CurDAG->getConstant(~N1C->getZExtValue(), dl, MVT::i32); in Select() 3906 N1C = dyn_cast<ConstantSDNode>(N1); in Select() 3907 if (!N1C) in Select() 3914 unsigned N1CVal = N1C->getZExtValue(); in Select()
|
| D | ARMISelLowering.cpp | 14153 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N->getOperand(1)); in CombineANDShift() local 14154 if (!N1C) in CombineANDShift() 14157 uint32_t C1 = (uint32_t)N1C->getZExtValue(); in CombineANDShift() 14396 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in PerformORCombineToBFI() local 14397 if (N1C) { in PerformORCombineToBFI() 14398 unsigned Val = N1C->getZExtValue(); in PerformORCombineToBFI()
|
| /openbsd/src/gnu/llvm/llvm/include/llvm/CodeGen/ |
| D | TargetLowering.h | 5188 EVT SCCVT, SDValue N0, SDValue N1C, ISD::CondCode Cond,
|
| /openbsd/src/gnu/llvm/llvm/lib/Target/PowerPC/ |
| D | PPCISelDAGToDAG.cpp | 5680 if (ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N->getOperand(1))) in Select() local 5683 if (N1C->isZero() && N3C->isZero() && N2C->getZExtValue() == 1ULL && in Select()
|
| /openbsd/src/gnu/llvm/llvm/lib/Target/X86/ |
| D | X86ISelLowering.cpp | 47781 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in combineShiftLeft() local 47787 N1C && N0.getOpcode() == ISD::AND && in combineShiftLeft() 47791 Mask <<= N1C->getAPIntValue(); in combineShiftLeft() 52279 auto *N1C = dyn_cast<ConstantSDNode>(N1); in combineXor() local 52281 if (N1C && !N1C->isOpaque() && N001C && !N001C->isOpaque()) { in combineXor()
|