Lines Matching refs:TLI
102 const TargetLibraryInfo *TLI, in getAllocationData() argument
115 if (!TLI || !TLI->getLibFunc(FnName, TLIFn) || !TLI->has(TLIFn)) in getAllocationData()
154 bool llvm::isAllocationFn(const Value *V, const TargetLibraryInfo *TLI, in isAllocationFn() argument
156 return getAllocationData(V, AnyAlloc, TLI, LookThroughBitCast); in isAllocationFn()
161 bool llvm::isNoAliasFn(const Value *V, const TargetLibraryInfo *TLI, in isNoAliasFn() argument
165 return isAllocationFn(V, TLI, LookThroughBitCast) || in isNoAliasFn()
171 bool llvm::isMallocLikeFn(const Value *V, const TargetLibraryInfo *TLI, in isMallocLikeFn() argument
173 return getAllocationData(V, MallocLike, TLI, LookThroughBitCast); in isMallocLikeFn()
178 bool llvm::isCallocLikeFn(const Value *V, const TargetLibraryInfo *TLI, in isCallocLikeFn() argument
180 return getAllocationData(V, CallocLike, TLI, LookThroughBitCast); in isCallocLikeFn()
185 bool llvm::isAllocLikeFn(const Value *V, const TargetLibraryInfo *TLI, in isAllocLikeFn() argument
187 return getAllocationData(V, AllocLike, TLI, LookThroughBitCast); in isAllocLikeFn()
192 bool llvm::isReallocLikeFn(const Value *V, const TargetLibraryInfo *TLI, in isReallocLikeFn() argument
194 return getAllocationData(V, ReallocLike, TLI, LookThroughBitCast); in isReallocLikeFn()
199 bool llvm::isOperatorNewLikeFn(const Value *V, const TargetLibraryInfo *TLI, in isOperatorNewLikeFn() argument
201 return getAllocationData(V, OpNewLike, TLI, LookThroughBitCast); in isOperatorNewLikeFn()
208 const TargetLibraryInfo *TLI) { in extractMallocCall() argument
209 return isMallocLikeFn(I, TLI) ? dyn_cast<CallInst>(I) : nullptr; in extractMallocCall()
213 const TargetLibraryInfo *TLI, in computeArraySize() argument
219 Type *T = getMallocAllocatedType(CI, TLI); in computeArraySize()
244 const TargetLibraryInfo *TLI) { in getMallocType() argument
245 assert(isMallocLikeFn(CI, TLI) && "getMallocType and not malloc call"); in getMallocType()
276 const TargetLibraryInfo *TLI) { in getMallocAllocatedType() argument
277 PointerType *PT = getMallocType(CI, TLI); in getMallocAllocatedType()
287 const TargetLibraryInfo *TLI, in getMallocArraySize() argument
289 assert(isMallocLikeFn(CI, TLI) && "getMallocArraySize and not malloc call"); in getMallocArraySize()
290 return computeArraySize(CI, DL, TLI, LookThroughSExt); in getMallocArraySize()
297 const TargetLibraryInfo *TLI) { in extractCallocCall() argument
298 return isCallocLikeFn(I, TLI) ? cast<CallInst>(I) : nullptr; in extractCallocCall()
303 const CallInst *llvm::isFreeCall(const Value *I, const TargetLibraryInfo *TLI) { in isFreeCall() argument
313 if (!TLI || !TLI->getLibFunc(FnName, TLIFn) || !TLI->has(TLIFn)) in isFreeCall()
369 const TargetLibraryInfo *TLI, bool RoundToAlign) { in getObjectSize() argument
370 ObjectSizeOffsetVisitor Visitor(DL, TLI, Ptr->getContext(), RoundToAlign); in getObjectSize()
398 const TargetLibraryInfo *TLI, in ObjectSizeOffsetVisitor() argument
401 : DL(DL), TLI(TLI), RoundToAlign(RoundToAlign) { in ObjectSizeOffsetVisitor()
472 TLI); in visitCallSite()
592 const DataLayout &DL, const TargetLibraryInfo *TLI, LLVMContext &Context, in ObjectSizeOffsetEvaluator() argument
594 : DL(DL), TLI(TLI), Context(Context), Builder(Context, TargetFolder(DL)), in ObjectSizeOffsetEvaluator()
624 ObjectSizeOffsetVisitor Visitor(DL, TLI, Context, RoundToAlign); in compute_()
688 TLI); in visitCallSite()