• Home
  • Raw
  • Download

Lines Matching refs:ConstantRange

72 bool isUnsafe(const ConstantRange &R) {  in isUnsafe()
76 ConstantRange addOverflowNever(const ConstantRange &L, const ConstantRange &R) { in addOverflowNever()
80 ConstantRange::OverflowResult::NeverOverflows) in addOverflowNever()
81 return ConstantRange::getFull(L.getBitWidth()); in addOverflowNever()
82 ConstantRange Result = L.add(R); in addOverflowNever()
87 ConstantRange unionNoWrap(const ConstantRange &L, const ConstantRange &R) { in unionNoWrap()
93 Result = ConstantRange::getFull(Result.getBitWidth()); in unionNoWrap()
118 ConstantRange Range;
125 using CallsTy = std::map<CallInfo<CalleeTy>, ConstantRange,
131 void updateRange(const ConstantRange &R) { Range = unionNoWrap(Range, R); } in updateRange()
146 ConstantRange getStaticAllocaSizeRange(const AllocaInst &AI) { in getStaticAllocaSizeRange()
151 ConstantRange R = ConstantRange::getEmpty(PointerSize); in getStaticAllocaSizeRange()
170 R = ConstantRange(APInt::getNullValue(PointerSize), APSize); in getStaticAllocaSizeRange()
236 const ConstantRange UnknownRange;
238 ConstantRange offsetFrom(Value *Addr, Value *Base);
239 ConstantRange getAccessRange(Value *Addr, Value *Base,
240 const ConstantRange &SizeRange);
241 ConstantRange getAccessRange(Value *Addr, Value *Base, TypeSize Size);
242 ConstantRange getMemIntrinsicAccessRange(const MemIntrinsic *MI, const Use &U,
258 ConstantRange StackSafetyLocalAnalysis::offsetFrom(Value *Addr, Value *Base) { in offsetFrom()
267 ConstantRange Offset = SE.getSignedRange(Diff); in offsetFrom()
273 ConstantRange
275 const ConstantRange &SizeRange) { in getAccessRange()
278 return ConstantRange::getEmpty(PointerSize); in getAccessRange()
281 ConstantRange Offsets = offsetFrom(Addr, Base); in getAccessRange()
291 ConstantRange StackSafetyLocalAnalysis::getAccessRange(Value *Addr, Value *Base, in getAccessRange()
299 Addr, Base, ConstantRange(APInt::getNullValue(PointerSize), APSize)); in getAccessRange()
302 ConstantRange StackSafetyLocalAnalysis::getMemIntrinsicAccessRange( in getMemIntrinsicAccessRange()
306 return ConstantRange::getEmpty(PointerSize); in getMemIntrinsicAccessRange()
309 return ConstantRange::getEmpty(PointerSize); in getMemIntrinsicAccessRange()
318 ConstantRange Sizes = SE.getSignedRange(Expr); in getMemIntrinsicAccessRange()
322 ConstantRange SizeRange(APInt::getNullValue(PointerSize), in getMemIntrinsicAccessRange()
422 ConstantRange Offsets = offsetFrom(UI, Ptr); in analyzeAllUses()
477 const ConstantRange UnknownRange;
500 UnknownRange(ConstantRange::getFull(PointerBitWidth)) {} in StackSafetyDataFlowAnalysis()
504 ConstantRange getArgumentAccessRange(const CalleeTy *Callee, unsigned ParamNo,
505 const ConstantRange &Offsets) const;
509 ConstantRange StackSafetyDataFlowAnalysis<CalleeTy>::getArgumentAccessRange( in getArgumentAccessRange()
511 const ConstantRange &Offsets) const { in getArgumentAccessRange()
536 ConstantRange CalleeRange = in updateOneUse()
682 const ConstantRange *findParamAccess(const FunctionSummary &FS, in findParamAccess()
694 ConstantRange FullSet(Use.Range.getBitWidth(), true); in resolveAllCalls()
716 const ConstantRange *Found = findParamAccess(*FS, C.first.ParamNo); in resolveAllCalls()
719 ConstantRange Access = Found->sextOrTrunc(Use.Range.getBitWidth()); in resolveAllCalls()
1007 const ConstantRange FullSet(FunctionSummary::ParamAccess::RangeWidth, true); in generateParamAccessSummary()