| /openbsd-src/gnu/llvm/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() 308 APInt SMin = Other.getSignedMin(), SMax = Other.getSignedMax(); in makeGuaranteedNoWrapRegion() local 311 SMax.isStrictlyPositive() ? SignedMinVal - SMax : SignedMinVal); in makeGuaranteedNoWrapRegion() 319 APInt SMin = Other.getSignedMin(), SMax = Other.getSignedMax(); in makeGuaranteedNoWrapRegion() local 321 SMax.isStrictlyPositive() ? SignedMinVal + SMax : SignedMinVal, in makeGuaranteedNoWrapRegion() 751 APInt SMax = APInt::getSignedMaxValue(BW); in castOp() local 754 SMax = SMax.sext(ResultBitWidth); in castOp() 756 return ConstantRange(std::move(SMin), std::move(SMax)); in castOp() [all …]
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/ |
| H A D | IVDescriptors.h | 43 SMax, ///< Signed integer max implemented in terms of select(cmp()). enumerator 224 Kind == RecurKind::SMin || Kind == RecurKind::SMax; in isIntMinMaxRecurrenceKind()
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/ |
| H A D | ExpandReductions.cpp | 61 return RecurKind::SMax; in getRK()
|
| /openbsd-src/gnu/llvm/llvm/lib/Analysis/ |
| H A D | IVDescriptors.cpp | 51 case RecurKind::SMax: in isIntegerRecurrenceKind() 695 return InstDesc(Kind == RecurKind::SMax, I); in isMinMaxPattern() 863 if (AddReductionVar(Phi, RecurKind::SMax, TheLoop, FMF, RedDes, DB, AC, DT, in isReductionPHI() 1110 case RecurKind::SMax: in getRecurrenceIdentity() 1147 case RecurKind::SMax: in getOpcode()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/RISCV/ |
| H A D | RISCVTargetTransformInfo.h | 271 case RecurKind::SMax: in isLegalToVectorizeReduction()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCompares.cpp | 999 APInt SMax = APInt::getSignedMaxValue(C.getBitWidth()); in foldICmpAddOpConst() local 1009 ConstantInt::get(X->getType(), SMax - C)); in foldICmpAddOpConst() 1020 ConstantInt::get(X->getType(), SMax - (C - 1))); in foldICmpAddOpConst() 2760 const APInt SMax = APInt::getSignedMaxValue(Ty->getScalarSizeInBits()); in foldICmpAddConstant() local 2765 if (Pred == CmpInst::ICMP_UGT && C == *C2 + SMax) in foldICmpAddConstant() 2774 return new ICmpInst(ICmpInst::ICMP_ULT, X, ConstantInt::get(Ty, SMax - C)); in foldICmpAddConstant() 2778 return new ICmpInst(ICmpInst::ICMP_UGT, X, ConstantInt::get(Ty, C ^ SMax)); in foldICmpAddConstant() 6522 APFloat SMax(RHS.getSemantics()); in foldFCmpIntToFPConst() local 6523 SMax.convertFromAPInt(APInt::getSignedMaxValue(IntWidth), true, in foldFCmpIntToFPConst() 6525 if (SMax < RHS) { // smax < 13123.0 in foldFCmpIntToFPConst()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/ |
| H A D | LoopUtils.cpp | 893 case RecurKind::SMax: in getMinMaxReductionPredicate() 1046 case RecurKind::SMax: in createSimpleTargetReduction()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVInstrInfo.td | 688 def OpGroupSMax: OpGroup<"SMax", 271>; 751 def OpGroupNonUniformSMax: OpGroupNUGroup<"SMax", 356>;
|
| H A D | SPIRVInstructionSelector.cpp | 340 return selectExtInst(ResVReg, ResType, I, CL::s_max, GL::SMax); in spvSelect()
|
| H A D | SPIRVBuiltins.td | 388 defm : DemangledExtendedBuiltin<"SMax", GLSL_std_450, 42>;
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUISelDAGToDAG.cpp | 1814 uint64_t SMax = SKnown.getMaxValue().getZExtValue(); in checkFlatScratchSVSSwizzleBug() local 1815 return (VMax & 3) + (SMax & 3) >= 4; in checkFlatScratchSVSSwizzleBug()
|
| H A D | AMDGPUInstructionSelector.cpp | 4130 uint64_t SMax = SKnown.getMaxValue().getZExtValue(); in checkFlatScratchSVSSwizzleBug() local 4131 return (VMax & 3) + (SMax & 3) >= 4; in checkFlatScratchSVSSwizzleBug()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Vectorize/ |
| H A D | SLPVectorizer.cpp | 11932 case RecurKind::SMax: in createOp() 12018 return RecurKind::SMax; in getRdxKind() 12069 return RecurKind::SMax; in getRdxKind() 12936 case RecurKind::SMax: in getReductionCost()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/ |
| H A D | AArch64TargetTransformInfo.cpp | 2909 case RecurKind::SMax: in isLegalToVectorizeReduction()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/X86/ |
| H A D | X86ISelLowering.cpp | 49977 if (SDValue SMax = MatchMinMax(In, ISD::SMAX, C1)) in detectUSatPattern() local 49978 if (SDValue SMin = MatchMinMax(SMax, ISD::SMIN, C2)) in detectUSatPattern() 50020 if (SDValue SMax = MatchMinMax(SMin, ISD::SMAX, SignedMin)) in detectSSatPattern() local 50021 return SMax; in detectSSatPattern() 50023 if (SDValue SMax = MatchMinMax(In, ISD::SMAX, SignedMin)) in detectSSatPattern() local 50024 if (SDValue SMin = MatchMinMax(SMax, ISD::SMIN, SignedMax)) in detectSSatPattern()
|