Home
last modified time | relevance | path

Searched refs:getUpper (Results 1 – 22 of 22) sorted by relevance

/src/contrib/llvm-project/llvm/lib/IR/
H A DConstantRangeList.cpp18 if (Range.getLower().sge(Range.getUpper())) in isOrderedRanges()
23 if (CurRange.getLower().sge(CurRange.getUpper()) || in isOrderedRanges()
24 CurRange.getLower().sle(PreRange.getUpper())) in isOrderedRanges()
41 assert(NewRange.getLower().slt(NewRange.getUpper())); in insert()
44 if (empty() || Ranges.back().getUpper().slt(NewRange.getLower())) { in insert()
48 if (NewRange.getUpper().slt(Ranges.front().getLower())) { in insert()
64 if (!Ranges.empty() && NewRange.getLower().sle(Ranges.back().getUpper())) { in insert()
67 APIntOps::smax(NewRange.getUpper(), Ranges.back().getUpper()); in insert()
73 if (Ranges.back().getUpper().slt(Iter->getLower())) { in insert()
78 APIntOps::smax(Iter->getUpper(), Ranges.back().getUpper()); in insert()
[all …]
H A DConstantRange.cpp110 return ConstantRange(CR.getUpper(), CR.getLower()); in makeAllowedICmpRegion()
220 RHS = getUpper(); in getEquivalentICmp()
221 } else if (getUpper().isMinSignedValue() || getUpper().isMinValue()) { in getEquivalentICmp()
223 getUpper().isMinSignedValue() ? CmpInst::ICMP_SGE : CmpInst::ICMP_UGE; in getEquivalentICmp()
227 RHS = getUpper() - getLower(); in getEquivalentICmp()
485 return getUpper() - 1; in getUnsignedMax()
497 return getUpper() - 1; in getSignedMax()
523 return Lower.ule(Other.getLower()) && Other.getUpper().ule(Upper); in contains()
527 return Other.getUpper().ule(Upper) || in contains()
530 return Other.getUpper().ule(Upper) && Lower.ule(Other.getLower()); in contains()
[all …]
H A DAttributeImpl.h134 CR.getUpper().Profile(ID); in Profile()
143 CR.getUpper().Profile(ID); in Profile()
H A DMetadata.cpp1242 return A.getUpper() == B.getLower() || A.getLower() == B.getUpper(); in isContiguous()
1262 cast<ConstantInt>(ConstantInt::get(Ty, Union.getUpper())); in tryMergeRange()
H A DAttributes.cpp178 CR.getUpper().Profile(ID); in get()
205 CR.getUpper().Profile(ID); in get()
662 OS << CR.getLower() << ", " << CR.getUpper(); in getAsString()
H A DVerifier.cpp4125 return A.getUpper() == B.getLower() || A.getLower() == B.getUpper(); in isContiguous()
H A DAsmWriter.cpp1428 Out << " inrange(" << InRange->getLower() << ", " << InRange->getUpper() in WriteOptimizationInfo()
/src/contrib/llvm-project/llvm/lib/Analysis/
H A DValueLattice.cpp69 << Val.getConstantRange(true).getUpper() << ">"; in operator <<()
73 << Val.getConstantRange().getUpper() << ">"; in operator <<()
H A DStackSafetyAnalysis.cpp213 << getStaticAllocaSizeRange(*AI).getUpper() << "]: " << AS << "\n"; in print()
358 if (!Sizes.getUpper().isStrictlyPositive() || isUnsafe(Sizes)) in getMemIntrinsicAccessRange()
361 ConstantRange SizeRange(APInt::getZero(PointerSize), Sizes.getUpper() - 1); in getMemIntrinsicAccessRange()
405 const SCEV *Max = SE.getMinusSCEV(ToDiffTy(SE.getConstant(Size.getUpper())), in isSafeAccess()
H A DScalarEvolution.cpp7001 APInt StartUpper = StartRange.getUpper() - 1; in getRangeForAffineARHelper()
10380 APInt Upper = Range.getUpper().sext(A.getBitWidth()); in SolveQuadraticAddRecRange()
13397 APInt End = A.sge(1) ? (Range.getUpper() - 1) : Range.getLower(); in getNumIterationsInRange()
/src/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DGlobalSplit.cpp85 if (!SrcInRange.contains(Offset) && SrcInRange.getUpper() != Offset) in splitGlobal()
101 SrcInRange.getUpper() != MemberEnd) in splitGlobal()
H A DAttributorAttributes.cpp9111 Ty, AssumedConstantRange.getUpper()))}; in getMDNodeForConstantRange()
/src/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUAttributor.cpp733 if (getAssumed().getLower() == Min && getAssumed().getUpper() - 1 == Max) in emitAttributeIfNotDefault()
740 OS << getAssumed().getLower() << ',' << getAssumed().getUpper() - 1; in emitAttributeIfNotDefault()
750 OS << getAssumed().getLower() << ',' << getAssumed().getUpper() - 1; in getAsStr()
837 AssumedGroupSize->getAssumed().getUpper().getZExtValue() - 1}); in initialize()
868 CallerInfo->getAssumed().getUpper().getZExtValue() - 1}, in updateImpl()
870 AssumedGroupSize->getAssumed().getUpper().getZExtValue() - 1}); in updateImpl()
/src/contrib/llvm-project/llvm/include/llvm/DebugInfo/LogicalView/Core/
H A DLVRange.h72 LVAddress getUpper() const { return Upper; } in getUpper() function
/src/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DFunctionComparator.cpp155 if (int Res = cmpAPInts(LCR.getUpper(), RCR.getUpper())) in cmpAttrs()
447 if (int Res = cmpAPInts(InRangeL->getUpper(), InRangeR->getUpper())) in cmpConstants()
H A DSimplifyCFG.cpp695 for (APInt Tmp = Span.getLower(); Tmp != Span.getUpper(); ++Tmp) in matchInstruction()
6815 const uint64_t UpperBound = CR.getUpper().getLimitedValue(); in SwitchToLookupTable()
/src/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstantRange.h206 const APInt &getUpper() const { return Upper; } in getUpper() function
/src/contrib/llvm-project/llvm/lib/DebugInfo/LogicalView/Readers/
H A DLVCodeViewReader.cpp1137 ScopesWithRanges->getUpper()); in processModule()
/src/contrib/llvm-project/llvm/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp925 (uint64_t(CR.getUpper().getActiveWords()) << 32)); in emitConstantRange()
927 emitWideAPInt(Record, CR.getUpper()); in emitConstantRange()
930 emitSignedInt64(Record, CR.getUpper().getSExtValue()); in emitConstantRange()
4046 assert(Range.getUpper().getNumWords() == 1); in writeFunctionTypeMetadataRecords()
4048 emitSignedInt64(Record, *Range.getUpper().getRawData()); in writeFunctionTypeMetadataRecords()
/src/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineAndOrXor.cpp1314 APInt UpperDiff = (CR1.getUpper() - 1) ^ (CR2.getUpper() - 1); in foldAndOrOfICmpsUsingRanges()
1315 APInt CR1Size = CR1.getUpper() - CR1.getLower(); in foldAndOrOfICmpsUsingRanges()
1317 CR1Size != CR2.getUpper() - CR2.getLower()) in foldAndOrOfICmpsUsingRanges()
H A DInstCombineCompares.cpp3080 const APInt &Upper = CR.getUpper(); in foldICmpAddConstant()
/src/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCombinerHelper.cpp7084 APInt UpperDiff = (CR1.getUpper() - 1) ^ (CR2.getUpper() - 1); in tryFoldAndOrOrICmpsUsingRanges()
7085 APInt CR1Size = CR1.getUpper() - CR1.getLower(); in tryFoldAndOrOrICmpsUsingRanges()
7087 CR1Size != CR2.getUpper() - CR2.getLower()) in tryFoldAndOrOrICmpsUsingRanges()