/freebsd/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() 122 return ConstantRange(APInt::getSignedMinValue(W), std::move(SMax)); in makeAllowedICmpRegion() 337 APInt SMin = Other.getSignedMin(), SMax = Other.getSignedMax(); in makeGuaranteedNoWrapRegion() local 340 SMax.isStrictlyPositive() ? SignedMinVal - SMax : SignedMinVal); in makeGuaranteedNoWrapRegion() 348 APInt SMin = Other.getSignedMin(), SMax = Other.getSignedMax(); in makeGuaranteedNoWrapRegion() local 350 SMax.isStrictlyPositive() ? SignedMinVal + SMax : SignedMinVal, in makeGuaranteedNoWrapRegion() 811 APInt SMax = APInt::getSignedMaxValue(BW); in castOp() local 814 SMax = SMax.sext(ResultBitWidth); in castOp() 816 return getNonEmpty(std::move(SMin), std::move(SMax) + 1); in castOp() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | IVDescriptors.h | 42 SMax, ///< Signed integer max implemented in terms of select(cmp()). 223 Kind == RecurKind::SMin || Kind == RecurKind::SMax; in isIntMinMaxRecurrenceKind() 43 SMax, ///< Signed integer max implemented in terms of select(cmp()). global() enumerator
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | IVDescriptors.cpp | 49 case RecurKind::SMax: in isIntegerRecurrenceKind() 690 return InstDesc(Kind == RecurKind::SMax, I); in isMinMaxPattern() 876 if (AddReductionVar(Phi, RecurKind::SMax, TheLoop, FMF, RedDes, DB, AC, DT, in isReductionPHI() 1072 case RecurKind::SMax: in getRecurrenceIdentity() 1113 case RecurKind::SMax: in getOpcode()
|
H A D | ScalarEvolution.cpp | 15397 if (auto *SMax = dyn_cast<SCEVSMaxExpr>(FromRewritten)) in collect() local 15398 EnqueueOperands(SMax); in collect()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | LoopUtils.cpp | 940 case RecurKind::SMax: in getReductionIntrinsicID() 1021 case RecurKind::SMax: in getMinMaxReductionIntrinsicOp() 1037 return RecurKind::SMax; in getMinMaxReductionRecurKind() 1063 case RecurKind::SMax: in getMinMaxReductionPredicate() 1230 case RecurKind::SMax: in createSimpleTargetReduction()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/ |
H A D | DXIL.td | 330 def SMax : DXILOpMapping<37, binary, int_smax, 331 "Signed integer maximum. SMax(a,b) = a > b ? a : b">;
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVTargetTransformInfo.h | 320 case RecurKind::SMax: in isLegalToVectorizeReduction()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCompares.cpp | 935 APInt SMax = APInt::getSignedMaxValue(C.getBitWidth()); in foldICmpAddOpConst() local 945 ConstantInt::get(X->getType(), SMax - C)); in foldICmpAddOpConst() 956 ConstantInt::get(X->getType(), SMax - (C - 1))); in foldICmpAddOpConst() 3096 const APInt SMax = APInt::getSignedMaxValue(Ty->getScalarSizeInBits()); in foldICmpAddConstant() local 3101 if (Pred == CmpInst::ICMP_UGT && C == *C2 + SMax) in foldICmpAddConstant() 3110 return new ICmpInst(ICmpInst::ICMP_ULT, X, ConstantInt::get(Ty, SMax - C)); in foldICmpAddConstant() 3114 return new ICmpInst(ICmpInst::ICMP_UGT, X, ConstantInt::get(Ty, C ^ SMax)); in foldICmpAddConstant() 7713 APFloat SMax(RHS->getSemantics()); in foldFCmpIntToFPConst() local 7714 SMax.convertFromAPInt(APInt::getSignedMaxValue(IntWidth), true, in foldFCmpIntToFPConst() 7716 if (SMax < *RHS) { // smax < 13123.0 in foldFCmpIntToFPConst()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
H A D | SPIRVInstrInfo.td | 732 def OpGroupSMax: OpGroup<"SMax", 271>; 795 def OpGroupNonUniformSMax: OpGroupNUGroup<"SMax", 356>;
|
H A D | SPIRVBuiltins.td | 416 defm : DemangledExtendedBuiltin<"SMax", GLSL_std_450, 42>;
|
H A D | SPIRVInstructionSelector.cpp | 425 return selectExtInst(ResVReg, ResType, I, CL::s_max, GL::SMax); in spvSelect()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUISelDAGToDAG.cpp | 1934 uint64_t SMax = SKnown.getMaxValue().getZExtValue(); in checkFlatScratchSVSSwizzleBug() local 1935 return (VMax & 3) + (SMax & 3) >= 4; in checkFlatScratchSVSSwizzleBug()
|
H A D | AMDGPUInstructionSelector.cpp | 4544 uint64_t SMax = SKnown.getMaxValue().getZExtValue(); in checkFlatScratchSVSSwizzleBug() local 4545 return (VMax & 3) + (SMax & 3) >= 4; in checkFlatScratchSVSSwizzleBug()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
H A D | SLPVectorizer.cpp | 16753 case RecurKind::SMax: in createOp() 16844 return RecurKind::SMax; in getRdxKind() 16895 return RecurKind::SMax; in getRdxKind() 17841 case RecurKind::SMax: in getReductionCost() 17908 case RecurKind::SMax: in emitScaleForReusedOps() 17965 case RecurKind::SMax: in emitReusedOps()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64TargetTransformInfo.cpp | 3799 case RecurKind::SMax: in isLegalToVectorizeReduction()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86ISelLowering.cpp | 50984 if (SDValue SMax = MatchMinMax(In, ISD::SMAX, C1)) in detectUSatPattern() local 50985 if (SDValue SMin = MatchMinMax(SMax, ISD::SMIN, C2)) in detectUSatPattern() 51027 if (SDValue SMax = MatchMinMax(SMin, ISD::SMAX, SignedMin)) in detectSSatPattern() local 51028 return SMax; in detectSSatPattern() 51030 if (SDValue SMax = MatchMinMax(In, ISD::SMAX, SignedMin)) in detectSSatPattern() local 51031 if (SDValue SMin = MatchMinMax(SMax, ISD::SMIN, SignedMax)) in detectSSatPattern()
|