| /freebsd-14.2/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ConstantRange.cpp | 119 APInt SMax(CR.getSignedMax()); in makeAllowedICmpRegion() local 120 if (SMax.isMinSignedValue()) in makeAllowedICmpRegion() 311 SMax.isStrictlyPositive() ? SignedMinVal - SMax : SignedMinVal); in makeGuaranteedNoWrapRegion() 321 SMax.isStrictlyPositive() ? SignedMinVal + SMax : SignedMinVal, in makeGuaranteedNoWrapRegion() 755 APInt SMax = APInt::getSignedMaxValue(BW); in castOp() local 758 SMax = SMax.sext(ResultBitWidth); in castOp() 1688 APInt SMin = getSignedMin(), SMax = getSignedMax(); in abs() local 1693 if (SMax.isMinSignedValue()) in abs() 1700 return ConstantRange(SMin, SMax + 1); in abs() 1703 if (SMax.isNegative()) in abs() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | IVDescriptors.h | 42 SMax, ///< Signed integer max implemented in terms of select(cmp()). enumerator 223 Kind == RecurKind::SMin || Kind == RecurKind::SMax; in isIntMinMaxRecurrenceKind()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | IVDescriptors.cpp | 49 case RecurKind::SMax: in isIntegerRecurrenceKind() 691 return InstDesc(Kind == RecurKind::SMax, I); in isMinMaxPattern() 877 if (AddReductionVar(Phi, RecurKind::SMax, TheLoop, FMF, RedDes, DB, AC, DT, in isReductionPHI() 1073 case RecurKind::SMax: in getRecurrenceIdentity() 1114 case RecurKind::SMax: in getOpcode()
|
| H A D | ScalarEvolution.cpp | 15307 if (auto *SMax = dyn_cast<SCEVSMaxExpr>(FromRewritten)) in applyLoopGuards() local 15308 EnqueueOperands(SMax); in applyLoopGuards()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | ExpandReductions.cpp | 61 return RecurKind::SMax; in getRK()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVTargetTransformInfo.h | 287 case RecurKind::SMax: in isLegalToVectorizeReduction()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | LoopUtils.cpp | 930 case RecurKind::SMax: in getMinMaxReductionIntrinsicOp() 953 case RecurKind::SMax: in getMinMaxReductionPredicate() 1114 case RecurKind::SMax: in createSimpleTargetReduction()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCompares.cpp | 934 APInt SMax = APInt::getSignedMaxValue(C.getBitWidth()); in foldICmpAddOpConst() local 944 ConstantInt::get(X->getType(), SMax - C)); in foldICmpAddOpConst() 955 ConstantInt::get(X->getType(), SMax - (C - 1))); in foldICmpAddOpConst() 3005 const APInt SMax = APInt::getSignedMaxValue(Ty->getScalarSizeInBits()); in foldICmpAddConstant() local 3010 if (Pred == CmpInst::ICMP_UGT && C == *C2 + SMax) in foldICmpAddConstant() 3019 return new ICmpInst(ICmpInst::ICMP_ULT, X, ConstantInt::get(Ty, SMax - C)); in foldICmpAddConstant() 3023 return new ICmpInst(ICmpInst::ICMP_UGT, X, ConstantInt::get(Ty, C ^ SMax)); in foldICmpAddConstant() 7344 APFloat SMax(RHS.getSemantics()); in foldFCmpIntToFPConst() local 7345 SMax.convertFromAPInt(APInt::getSignedMaxValue(IntWidth), true, in foldFCmpIntToFPConst() 7347 if (SMax < RHS) { // smax < 13123.0 in foldFCmpIntToFPConst()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVInstrInfo.td | 692 def OpGroupSMax: OpGroup<"SMax", 271>; 755 def OpGroupNonUniformSMax: OpGroupNUGroup<"SMax", 356>;
|
| H A D | SPIRVInstructionSelector.cpp | 347 return selectExtInst(ResVReg, ResType, I, CL::s_max, GL::SMax); in spvSelect()
|
| H A D | SPIRVBuiltins.td | 388 defm : DemangledExtendedBuiltin<"SMax", GLSL_std_450, 42>;
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUISelDAGToDAG.cpp | 1910 uint64_t SMax = SKnown.getMaxValue().getZExtValue(); in checkFlatScratchSVSSwizzleBug() local 1911 return (VMax & 3) + (SMax & 3) >= 4; in checkFlatScratchSVSSwizzleBug()
|
| H A D | AMDGPUInstructionSelector.cpp | 4583 uint64_t SMax = SKnown.getMaxValue().getZExtValue(); in checkFlatScratchSVSSwizzleBug() local 4584 return (VMax & 3) + (SMax & 3) >= 4; in checkFlatScratchSVSSwizzleBug()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| H A D | SLPVectorizer.cpp | 14045 case RecurKind::SMax: in createOp() 14138 return RecurKind::SMax; in getRdxKind() 14189 return RecurKind::SMax; in getRdxKind() 15141 case RecurKind::SMax: in getReductionCost() 15208 case RecurKind::SMax: in emitScaleForReusedOps() 15270 case RecurKind::SMax: in emitReusedOps()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64TargetTransformInfo.cpp | 3525 case RecurKind::SMax: in isLegalToVectorizeReduction()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86ISelLowering.cpp | 49648 if (SDValue SMax = MatchMinMax(In, ISD::SMAX, C1)) in detectUSatPattern() local 49649 if (SDValue SMin = MatchMinMax(SMax, ISD::SMIN, C2)) in detectUSatPattern() 49691 if (SDValue SMax = MatchMinMax(SMin, ISD::SMAX, SignedMin)) in detectSSatPattern() local 49692 return SMax; in detectSSatPattern() 49694 if (SDValue SMax = MatchMinMax(In, ISD::SMAX, SignedMin)) in detectSSatPattern() local 49695 if (SDValue SMin = MatchMinMax(SMax, ISD::SMIN, SignedMax)) in detectSSatPattern()
|