/freebsd/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() 138 return ConstantRange(std::move(SMin) + 1, APInt::getSignedMinValue(W)); in makeAllowedICmpRegion() 337 APInt SMin = Other.getSignedMin(), SMax = Other.getSignedMax(); in makeGuaranteedNoWrapRegion() local 339 SMin.isNegative() ? SignedMinVal - SMin : SignedMinVal, in makeGuaranteedNoWrapRegion() 348 APInt SMin = Other.getSignedMin(), SMax = Other.getSignedMax(); in makeGuaranteedNoWrapRegion() local 351 SMin.isNegative() ? SignedMinVal + SMin : SignedMinVal); in makeGuaranteedNoWrapRegion() 810 APInt SMin = APInt::getSignedMinValue(BW); in castOp() local 813 SMin = SMin.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 | 41 SMin, ///< Signed integer min implemented in terms of select(cmp()). 223 Kind == RecurKind::SMin || Kind == RecurKind::SMax; in isIntMinMaxRecurrenceKind() 42 SMin, ///< Signed integer min implemented in terms of select(cmp()). global() enumerator
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | IVDescriptors.cpp | 50 case RecurKind::SMin: in isIntegerRecurrenceKind() 692 return InstDesc(Kind == RecurKind::SMin, I); in isMinMaxPattern() 881 if (AddReductionVar(Phi, RecurKind::SMin, TheLoop, FMF, RedDes, DB, AC, DT, in isReductionPHI() 1069 case RecurKind::SMin: in getRecurrenceIdentity() 1114 case RecurKind::SMin: in getOpcode()
|
H A D | ScalarEvolution.cpp | 15409 if (auto *SMin = dyn_cast<SCEVSMinExpr>(FromRewritten)) in collect() local 15410 EnqueueOperands(SMin); in collect()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | LoopUtils.cpp | 942 case RecurKind::SMin: in getReductionIntrinsicID() 1019 case RecurKind::SMin: in getMinMaxReductionIntrinsicOp() 1039 return RecurKind::SMin; in getMinMaxReductionRecurKind() 1061 case RecurKind::SMin: in getMinMaxReductionPredicate() 1232 case RecurKind::SMin: in createSimpleTargetReduction()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/ |
H A D | DXIL.td | 332 def SMin : DXILOpMapping<38, binary, int_smin, 333 "Signed integer minimum. SMin(a,b) = a < b ? a : b">;
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVTargetTransformInfo.h | 319 case RecurKind::SMin: in isLegalToVectorizeReduction()
|
H A D | RISCVISelLowering.cpp | 16516 SDValue SMin = in combineTruncOfSraSext() 16519 return DAG.getNode(ISD::SRA, SDLoc(N), N->getValueType(0), N00, SMin); 16513 SDValue SMin = combineTruncOfSraSext() local
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGObjC.cpp | 3961 SMin = Version.getSubminor(); in emitIsPlatformVersionAtLeast() local 3966 Args.push_back(llvm::ConstantInt::get(CGM.Int32Ty, SMin.value_or(0))); in emitIsPlatformVersionAtLeast() 4000 SMin = Version.getSubminor(); in EmitBuiltinAvailable() local 4004 llvm::ConstantInt::get(CGM.Int32Ty, SMin.value_or(0))}; in EmitBuiltinAvailable()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCompares.cpp | 3097 const APInt SMin = APInt::getSignedMinValue(Ty->getScalarSizeInBits()); in foldICmpAddConstant() local 3105 if (Pred == CmpInst::ICMP_ULT && C == *C2 + SMin) in foldICmpAddConstant() 7228 const APInt SMin = in foldICmpCommutative() local 7245 X, ConstantInt::get(X->getType(), SMin + 1))); in foldICmpCommutative() 7254 X, ConstantInt::get(X->getType(), SMin))); in foldICmpCommutative() 7738 APFloat SMin(RHS->getSemantics()); in foldFCmpIntToFPConst() local 7739 SMin.convertFromAPInt(APInt::getSignedMinValue(IntWidth), true, in foldFCmpIntToFPConst() 7741 if (SMin > *RHS) { // smin > 12312.0 in foldFCmpIntToFPConst()
|
H A D | InstCombineAddSub.cpp | 1295 APInt SMin = APInt::getSignedMinValue(Add.getType()->getScalarSizeInBits()); in foldAddToAshr() local 1297 ? (*MaskC == (SMin | (*DivC - 1))) in foldAddToAshr() 1298 : (*DivC == 2 && *MaskC == SMin + 1); in foldAddToAshr()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
H A D | SPIRVInstrInfo.td | 729 def OpGroupSMin: OpGroup<"SMin", 268>; 792 def OpGroupNonUniformSMin: OpGroupNUGroup<"SMin", 353>;
|
H A D | SPIRVBuiltins.td | 413 defm : DemangledExtendedBuiltin<"SMin", GLSL_std_450, 39>;
|
H A D | SPIRVInstructionSelector.cpp | 420 return selectExtInst(ResVReg, ResType, I, CL::s_min, GL::SMin); in spvSelect()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
H A D | SLPVectorizer.cpp | 16759 case RecurKind::SMin: in createOp() 16846 return RecurKind::SMin; in getRdxKind() 16898 return RecurKind::SMin; in getRdxKind() 17842 case RecurKind::SMin: in getReductionCost() 17909 case RecurKind::SMin: in emitScaleForReusedOps() 17966 case RecurKind::SMin: in emitReusedOps()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64TargetTransformInfo.cpp | 3798 case RecurKind::SMin: in isLegalToVectorizeReduction()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86ISelLowering.cpp | 50979 if (SDValue SMin = MatchMinMax(In, ISD::SMIN, C2)) in detectUSatPattern() local 50980 if (MatchMinMax(SMin, ISD::SMAX, C1)) in detectUSatPattern() 50982 return SMin; in detectUSatPattern() 50985 if (SDValue SMin = MatchMinMax(SMax, ISD::SMIN, C2)) in detectUSatPattern() local 50988 return DAG.getNode(ISD::SMAX, DL, InVT, SMin, In.getOperand(1)); in detectUSatPattern() 51026 if (SDValue SMin = MatchMinMax(In, ISD::SMIN, SignedMax)) in detectSSatPattern() local 51027 if (SDValue SMax = MatchMinMax(SMin, ISD::SMAX, SignedMin)) in detectSSatPattern() 51031 if (SDValue SMin = MatchMinMax(SMax, ISD::SMIN, SignedMax)) in detectSSatPattern() local 51032 return SMin; in detectSSatPattern()
|