| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ConstantRange.cpp | 147 APInt SMin(CR.getSignedMin()); in makeAllowedICmpRegion() local 148 if (SMin.isMaxSignedValue()) in makeAllowedICmpRegion() 150 return ConstantRange(std::move(SMin) + 1, APInt::getSignedMinValue(W)); in makeAllowedICmpRegion() 348 APInt SMin = Other.getSignedMin(), SMax = Other.getSignedMax(); in makeGuaranteedNoWrapRegion() local 350 SMin.isNegative() ? SignedMinVal - SMin : SignedMinVal, in makeGuaranteedNoWrapRegion() 359 APInt SMin = Other.getSignedMin(), SMax = Other.getSignedMax(); in makeGuaranteedNoWrapRegion() local 362 SMin.isNegative() ? SignedMinVal + SMin : SignedMinVal); in makeGuaranteedNoWrapRegion() 821 APInt SMin = APInt::getSignedMinValue(BW); in castOp() local 824 SMin = SMin.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 | 42 SMin, ///< Signed integer min 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 | 49 case RecurKind::SMin: in isIntegerRecurrenceKind() 818 return InstDesc(Kind == RecurKind::SMin, I); in isMinMaxPattern() 1031 if (AddReductionVar(Phi, RecurKind::SMin, TheLoop, FMF, RedDes, DB, AC, DT, in isReductionPHI() 1225 case RecurKind::SMin: in getOpcode()
|
| H A D | ScalarEvolution.cpp | 15737 if (auto *SMin = dyn_cast<SCEVSMinExpr>(FromRewritten)) in collectFromBlock() local 15738 EnqueueOperands(SMin); in collectFromBlock()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | LoopUtils.cpp | 934 case RecurKind::SMin: in getReductionIntrinsicID() 1037 case RecurKind::SMin: in getMinMaxReductionIntrinsicOp() 1063 return RecurKind::SMin; in getMinMaxReductionRecurKind() 1085 case RecurKind::SMin: in getMinMaxReductionPredicate() 1310 case RecurKind::SMin: in createSimpleReduction()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVTargetTransformInfo.h | 370 case RecurKind::SMin: in isLegalToVectorizeReduction()
|
| H A D | RISCVISelLowering.cpp | 19368 SDValue SMin = in combineTruncOfSraSext() local 19371 return DAG.getNode(ISD::SRA, SDLoc(N), N->getValueType(0), N00, SMin); in combineTruncOfSraSext()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGObjC.cpp | 4007 SMin = Version.getSubminor(); in emitIsPlatformVersionAtLeast() local 4012 Args.push_back(llvm::ConstantInt::get(CGM.Int32Ty, SMin.value_or(0))); in emitIsPlatformVersionAtLeast() 4046 SMin = Version.getSubminor(); in EmitBuiltinAvailable() local 4050 llvm::ConstantInt::get(CGM.Int32Ty, SMin.value_or(0))}; in EmitBuiltinAvailable()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/ |
| H A D | DXIL.td | 731 def SMin : DXILOp<38, binary> { 732 let Doc = "Signed integer minimum. SMin(a,b) = a < b ? a : b";
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCompares.cpp | 3222 const APInt SMin = APInt::getSignedMinValue(Ty->getScalarSizeInBits()); in foldICmpAddConstant() local 3230 if (Pred == CmpInst::ICMP_ULT && C == *C2 + SMin) in foldICmpAddConstant() 7512 const APInt SMin = in foldICmpCommutative() local 7529 X, ConstantInt::get(X->getType(), SMin + 1))); in foldICmpCommutative() 7538 X, ConstantInt::get(X->getType(), SMin))); in foldICmpCommutative() 8074 APFloat SMin(RHS->getSemantics()); in foldFCmpIntToFPConst() local 8075 SMin.convertFromAPInt(APInt::getSignedMinValue(IntWidth), true, in foldFCmpIntToFPConst() 8077 if (SMin > *RHS) { // smin > 12312.0 in foldFCmpIntToFPConst()
|
| H A D | InstCombineAddSub.cpp | 1304 APInt SMin = APInt::getSignedMinValue(Add.getType()->getScalarSizeInBits()); in foldAddToAshr() local 1306 ? (*MaskC == (SMin | (*DivC - 1))) in foldAddToAshr() 1307 : (*DivC == 2 && *MaskC == SMin + 1); in foldAddToAshr()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVInstrInfo.td | 734 def OpGroupSMin: OpGroup<"SMin", 268>; 801 def OpGroupNonUniformSMin: OpGroupNUGroup<"SMin", 353>;
|
| H A D | SPIRVBuiltins.td | 423 defm : DemangledExtendedBuiltin<"SMin", GLSL_std_450, 39>;
|
| H A D | SPIRVInstructionSelector.cpp | 674 return selectExtInst(ResVReg, ResType, I, CL::s_min, GL::SMin); in spvSelect()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | LoopInterchange.cpp | 832 case RecurKind::SMin: in findInnerReductionPhi()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| H A D | SLPVectorizer.cpp | 21850 case RecurKind::SMin: in createOp() 21937 return RecurKind::SMin; in getRdxKind() 21989 return RecurKind::SMin; in getRdxKind() 23067 case RecurKind::SMin: in getReductionCost() 23185 case RecurKind::SMin: in emitReduction() 23324 case RecurKind::SMin: in emitScaleForReusedOps() 23388 case RecurKind::SMin: in emitReusedOps()
|
| H A D | VPlanRecipes.cpp | 772 MinMaxKind = IsSigned ? RecurKind::SMin : RecurKind::UMin; in generate()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86ISelLowering.cpp | 52692 SDValue UMin, SMin, SMax; in detectUSatPattern() local 52700 if (sd_match(In, m_SMin(m_Value(SMin), m_ConstInt(C2))) && in detectUSatPattern() 52701 sd_match(SMin, m_SMax(m_Value(SMax), m_ConstInt(C1))) && in detectUSatPattern() 52703 return SMin; in detectUSatPattern() 52706 sd_match(SMax, m_SMin(m_Value(SMin), m_ConstInt(C2))) && in detectUSatPattern() 52708 return DAG.getNode(ISD::SMAX, DL, InVT, SMin, In.getOperand(1)); in detectUSatPattern() 52737 SDValue SMin, SMax; in detectSSatPattern() local 52738 if (sd_match(In, m_SMin(m_Value(SMin), m_SpecificInt(SignedMax))) && in detectSSatPattern() 52739 sd_match(SMin, m_SMax(m_Value(SMax), m_SpecificInt(SignedMin)))) in detectSSatPattern() 52743 sd_match(SMax, m_SMin(m_Value(SMin), m_SpecificInt(SignedMax)))) in detectSSatPattern() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64TargetTransformInfo.cpp | 5100 case RecurKind::SMin: in isLegalToVectorizeReduction()
|