Home | History | Annotate | Download | only in Analysis

Lines Matching refs:TLI

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