| /freebsd-14.2/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ConstantRange.cpp | 135 APInt SMin(CR.getSignedMin()); in makeAllowedICmpRegion() local 136 if (SMin.isMaxSignedValue()) in makeAllowedICmpRegion() 310 SMin.isNegative() ? SignedMinVal - SMin : SignedMinVal, in makeGuaranteedNoWrapRegion() 322 SMin.isNegative() ? SignedMinVal + SMin : SignedMinVal); in makeGuaranteedNoWrapRegion() 754 APInt SMin = APInt::getSignedMinValue(BW); in castOp() local 757 SMin = SMin.sext(ResultBitWidth); in castOp() 1691 if (IntMinIsPoison && SMin.isMinSignedValue()) { in abs() 1695 ++SMin; in abs() 1699 if (SMin.isNonNegative()) in abs() 1700 return ConstantRange(SMin, SMax + 1); in abs() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | IVDescriptors.h | 41 SMin, ///< Signed integer min 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 | 50 case RecurKind::SMin: in isIntegerRecurrenceKind() 693 return InstDesc(Kind == RecurKind::SMin, I); in isMinMaxPattern() 882 if (AddReductionVar(Phi, RecurKind::SMin, TheLoop, FMF, RedDes, DB, AC, DT, in isReductionPHI() 1070 case RecurKind::SMin: in getRecurrenceIdentity() 1115 case RecurKind::SMin: in getOpcode()
|
| H A D | ScalarEvolution.cpp | 15319 if (auto *SMin = dyn_cast<SCEVSMinExpr>(FromRewritten)) in applyLoopGuards() local 15320 EnqueueOperands(SMin); in applyLoopGuards()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | ExpandReductions.cpp | 63 return RecurKind::SMin; in getRK()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVTargetTransformInfo.h | 286 case RecurKind::SMin: in isLegalToVectorizeReduction()
|
| H A D | RISCVISelLowering.cpp | 15363 SDValue SMin = DAG.getNode( in PerformDAGCombine() local 15366 return DAG.getNode(ISD::SRA, SDLoc(N), N->getValueType(0), N00, SMin); in PerformDAGCombine()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | LoopUtils.cpp | 928 case RecurKind::SMin: in getMinMaxReductionIntrinsicOp() 951 case RecurKind::SMin: in getMinMaxReductionPredicate() 1116 case RecurKind::SMin: in createSimpleTargetReduction()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGObjC.cpp | 3963 SMin = Version.getSubminor(); in emitIsPlatformVersionAtLeast() local 3968 Args.push_back(llvm::ConstantInt::get(CGM.Int32Ty, SMin.value_or(0))); in emitIsPlatformVersionAtLeast() 4002 SMin = Version.getSubminor(); in EmitBuiltinAvailable() local 4006 llvm::ConstantInt::get(CGM.Int32Ty, SMin.value_or(0))}; in EmitBuiltinAvailable()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVInstrInfo.td | 689 def OpGroupSMin: OpGroup<"SMin", 268>; 752 def OpGroupNonUniformSMin: OpGroupNUGroup<"SMin", 353>;
|
| H A D | SPIRVInstructionSelector.cpp | 342 return selectExtInst(ResVReg, ResType, I, CL::s_min, GL::SMin); in spvSelect()
|
| H A D | SPIRVBuiltins.td | 385 defm : DemangledExtendedBuiltin<"SMin", GLSL_std_450, 39>;
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCompares.cpp | 3006 const APInt SMin = APInt::getSignedMinValue(Ty->getScalarSizeInBits()); in foldICmpAddConstant() local 3014 if (Pred == CmpInst::ICMP_ULT && C == *C2 + SMin) in foldICmpAddConstant() 6899 const APInt SMin = in foldICmpCommutative() local 6916 X, ConstantInt::get(X->getType(), SMin + 1))); in foldICmpCommutative() 6925 X, ConstantInt::get(X->getType(), SMin))); in foldICmpCommutative() 7369 APFloat SMin(RHS.getSemantics()); in foldFCmpIntToFPConst() local 7370 SMin.convertFromAPInt(APInt::getSignedMinValue(IntWidth), true, in foldFCmpIntToFPConst() 7372 if (SMin > RHS) { // smin > 12312.0 in foldFCmpIntToFPConst()
|
| H A D | InstCombineAddSub.cpp | 1253 APInt SMin = APInt::getSignedMinValue(Add.getType()->getScalarSizeInBits()); in foldAddToAshr() local 1255 ? (*MaskC == (SMin | (*DivC - 1))) in foldAddToAshr() 1256 : (*DivC == 2 && *MaskC == SMin + 1); in foldAddToAshr()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| H A D | SLPVectorizer.cpp | 14051 case RecurKind::SMin: in createOp() 14140 return RecurKind::SMin; in getRdxKind() 14192 return RecurKind::SMin; in getRdxKind() 15142 case RecurKind::SMin: in getReductionCost() 15209 case RecurKind::SMin: in emitScaleForReusedOps() 15271 case RecurKind::SMin: in emitReusedOps()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64TargetTransformInfo.cpp | 3524 case RecurKind::SMin: in isLegalToVectorizeReduction()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86ISelLowering.cpp | 49643 if (SDValue SMin = MatchMinMax(In, ISD::SMIN, C2)) in detectUSatPattern() local 49644 if (MatchMinMax(SMin, ISD::SMAX, C1)) in detectUSatPattern() 49646 return SMin; in detectUSatPattern() 49649 if (SDValue SMin = MatchMinMax(SMax, ISD::SMIN, C2)) in detectUSatPattern() local 49652 return DAG.getNode(ISD::SMAX, DL, InVT, SMin, In.getOperand(1)); in detectUSatPattern() 49690 if (SDValue SMin = MatchMinMax(In, ISD::SMIN, SignedMax)) in detectSSatPattern() local 49691 if (SDValue SMax = MatchMinMax(SMin, ISD::SMAX, SignedMin)) in detectSSatPattern() 49695 if (SDValue SMin = MatchMinMax(SMax, ISD::SMIN, SignedMax)) in detectSSatPattern() local 49696 return SMin; in detectSSatPattern()
|