| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ConstantRange.cpp | 131 APInt SMax(CR.getSignedMax()); in makeAllowedICmpRegion() local 132 if (SMax.isMinSignedValue()) in makeAllowedICmpRegion() 134 return ConstantRange(APInt::getSignedMinValue(W), std::move(SMax)); in makeAllowedICmpRegion() 348 APInt SMin = Other.getSignedMin(), SMax = Other.getSignedMax(); in makeGuaranteedNoWrapRegion() local 351 SMax.isStrictlyPositive() ? SignedMinVal - SMax : SignedMinVal); in makeGuaranteedNoWrapRegion() 359 APInt SMin = Other.getSignedMin(), SMax = Other.getSignedMax(); in makeGuaranteedNoWrapRegion() local 361 SMax.isStrictlyPositive() ? SignedMinVal + SMax : SignedMinVal, in makeGuaranteedNoWrapRegion() 822 APInt SMax = APInt::getSignedMaxValue(BW); in castOp() local 825 SMax = SMax.sext(ResultBitWidth); in castOp() 827 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 | 43 SMax, ///< Signed integer max implemented in terms of select(cmp()). enumerator 249 Kind == RecurKind::SMin || Kind == RecurKind::SMax; in isIntMinMaxRecurrenceKind() 287 return Kind == RecurKind::SMax || Kind == RecurKind::SMin || in isSignedRecurrenceKind()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | IVDescriptors.cpp | 48 case RecurKind::SMax: in isIntegerRecurrenceKind() 816 return InstDesc(Kind == RecurKind::SMax, I); in isMinMaxPattern() 1026 if (AddReductionVar(Phi, RecurKind::SMax, TheLoop, FMF, RedDes, DB, AC, DT, in isReductionPHI() 1224 case RecurKind::SMax: in getOpcode()
|
| H A D | ScalarEvolution.cpp | 15725 if (auto *SMax = dyn_cast<SCEVSMaxExpr>(FromRewritten)) in collectFromBlock() local 15726 EnqueueOperands(SMax); in collectFromBlock()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | LoopUtils.cpp | 932 case RecurKind::SMax: in getReductionIntrinsicID() 1039 case RecurKind::SMax: in getMinMaxReductionIntrinsicOp() 1061 return RecurKind::SMax; in getMinMaxReductionRecurKind() 1087 case RecurKind::SMax: in getMinMaxReductionPredicate() 1309 case RecurKind::SMax: in createSimpleReduction()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVTargetTransformInfo.h | 371 case RecurKind::SMax: in isLegalToVectorizeReduction()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCompares.cpp | 963 APInt SMax = APInt::getSignedMaxValue(C.getBitWidth()); in foldICmpAddOpConst() local 973 ConstantInt::get(X->getType(), SMax - C)); in foldICmpAddOpConst() 984 ConstantInt::get(X->getType(), SMax - (C - 1))); in foldICmpAddOpConst() 3221 const APInt SMax = APInt::getSignedMaxValue(Ty->getScalarSizeInBits()); in foldICmpAddConstant() local 3226 if (Pred == CmpInst::ICMP_UGT && C == *C2 + SMax) in foldICmpAddConstant() 3235 return new ICmpInst(ICmpInst::ICMP_ULT, X, ConstantInt::get(Ty, SMax - C)); in foldICmpAddConstant() 3239 return new ICmpInst(ICmpInst::ICMP_UGT, X, ConstantInt::get(Ty, C ^ SMax)); in foldICmpAddConstant() 8049 APFloat SMax(RHS->getSemantics()); in foldFCmpIntToFPConst() local 8050 SMax.convertFromAPInt(APInt::getSignedMaxValue(IntWidth), true, in foldFCmpIntToFPConst() 8052 if (SMax < *RHS) { // smax < 13123.0 in foldFCmpIntToFPConst()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/ |
| H A D | DXIL.td | 721 def SMax : DXILOp<37, binary> { 722 let Doc = "Signed integer maximum. SMax(a,b) = a > b ? a : b";
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVInstrInfo.td | 737 def OpGroupSMax: OpGroup<"SMax", 271>; 804 def OpGroupNonUniformSMax: OpGroupNUGroup<"SMax", 356>;
|
| H A D | SPIRVBuiltins.td | 426 defm : DemangledExtendedBuiltin<"SMax", GLSL_std_450, 42>;
|
| H A D | SPIRVInstructionSelector.cpp | 679 return selectExtInst(ResVReg, ResType, I, CL::s_max, GL::SMax); in spvSelect()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | LoopInterchange.cpp | 833 case RecurKind::SMax: in findInnerReductionPhi()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUISelDAGToDAG.cpp | 2048 uint64_t SMax = SKnown.getMaxValue().getZExtValue(); in checkFlatScratchSVSSwizzleBug() local 2049 return (VMax & 3) + (SMax & 3) >= 4; in checkFlatScratchSVSSwizzleBug()
|
| H A D | AMDGPUInstructionSelector.cpp | 5577 uint64_t SMax = SKnown.getMaxValue().getZExtValue(); in checkFlatScratchSVSSwizzleBug() local 5578 return (VMax & 3) + (SMax & 3) >= 4; in checkFlatScratchSVSSwizzleBug()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| H A D | SLPVectorizer.cpp | 21849 case RecurKind::SMax: in createOp() 21935 return RecurKind::SMax; in getRdxKind() 21986 return RecurKind::SMax; in getRdxKind() 23066 case RecurKind::SMax: in getReductionCost() 23184 case RecurKind::SMax: in emitReduction() 23323 case RecurKind::SMax: in emitScaleForReusedOps() 23387 case RecurKind::SMax: in emitReusedOps()
|
| H A D | VPlanRecipes.cpp | 770 MinMaxKind = IsSigned ? RecurKind::SMax : RecurKind::UMax; in generate()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64TargetTransformInfo.cpp | 5101 case RecurKind::SMax: in isLegalToVectorizeReduction()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86ISelLowering.cpp | 52692 SDValue UMin, SMin, SMax; in detectUSatPattern() local 52701 sd_match(SMin, m_SMax(m_Value(SMax), m_ConstInt(C1))) && in detectUSatPattern() 52705 if (sd_match(In, m_SMax(m_Value(SMax), m_ConstInt(C1))) && in detectUSatPattern() 52706 sd_match(SMax, m_SMin(m_Value(SMin), m_ConstInt(C2))) && in detectUSatPattern() 52737 SDValue SMin, SMax; in detectSSatPattern() local 52739 sd_match(SMin, m_SMax(m_Value(SMax), m_SpecificInt(SignedMin)))) in detectSSatPattern() 52740 return SMax; in detectSSatPattern() 52742 if (sd_match(In, m_SMax(m_Value(SMax), m_SpecificInt(SignedMin))) && in detectSSatPattern() 52743 sd_match(SMax, m_SMin(m_Value(SMin), m_SpecificInt(SignedMax)))) in detectSSatPattern()
|