Lines Matching refs:TLI

93                                            const TargetLibraryInfo *TLI,
106 if (!TLI || !TLI->getLibFunc(FnName, TLIFn) || !TLI->has(TLIFn))
150 bool llvm::isAllocationFn(const Value *V, const TargetLibraryInfo *TLI,
152 return getAllocationData(V, AnyAlloc, TLI, LookThroughBitCast);
157 bool llvm::isNoAliasFn(const Value *V, const TargetLibraryInfo *TLI,
161 return isAllocationFn(V, TLI, LookThroughBitCast) ||
167 bool llvm::isMallocLikeFn(const Value *V, const TargetLibraryInfo *TLI,
169 return getAllocationData(V, MallocLike, TLI, LookThroughBitCast);
174 bool llvm::isCallocLikeFn(const Value *V, const TargetLibraryInfo *TLI,
176 return getAllocationData(V, CallocLike, TLI, LookThroughBitCast);
181 bool llvm::isAllocLikeFn(const Value *V, const TargetLibraryInfo *TLI,
183 return getAllocationData(V, AllocLike, TLI, LookThroughBitCast);
188 bool llvm::isReallocLikeFn(const Value *V, const TargetLibraryInfo *TLI,
190 return getAllocationData(V, ReallocLike, TLI, LookThroughBitCast);
195 bool llvm::isOperatorNewLikeFn(const Value *V, const TargetLibraryInfo *TLI,
197 return getAllocationData(V, OpNewLike, TLI, LookThroughBitCast);
204 const TargetLibraryInfo *TLI) {
205 return isMallocLikeFn(I, TLI) ? dyn_cast<CallInst>(I) : 0;
209 const TargetLibraryInfo *TLI,
215 Type *T = getMallocAllocatedType(CI, TLI);
239 const TargetLibraryInfo *TLI) {
240 const CallInst *CI = extractMallocCall(I, TLI);
241 Value *ArraySize = computeArraySize(CI, DL, TLI);
257 const TargetLibraryInfo *TLI) {
258 assert(isMallocLikeFn(CI, TLI) && "getMallocType and not malloc call");
289 const TargetLibraryInfo *TLI) {
290 PointerType *PT = getMallocType(CI, TLI);
300 const TargetLibraryInfo *TLI,
302 assert(isMallocLikeFn(CI, TLI) && "getMallocArraySize and not malloc call");
303 return computeArraySize(CI, DL, TLI, LookThroughSExt);
310 const TargetLibraryInfo *TLI) {
311 return isCallocLikeFn(I, TLI) ? cast<CallInst>(I) : 0;
316 const CallInst *llvm::isFreeCall(const Value *I, const TargetLibraryInfo *TLI) {
326 if (!TLI || !TLI->getLibFunc(FnName, TLIFn) || !TLI->has(TLIFn))
366 const TargetLibraryInfo *TLI, bool RoundToAlign) {
370 ObjectSizeOffsetVisitor Visitor(DL, TLI, Ptr->getContext(), RoundToAlign);
398 const TargetLibraryInfo *TLI,
401 : DL(DL), TLI(TLI), RoundToAlign(RoundToAlign) {
470 TLI);
590 const TargetLibraryInfo *TLI,
593 : DL(DL), TLI(TLI), Context(Context), Builder(Context, TargetFolder(DL)),
619 ObjectSizeOffsetVisitor Visitor(DL, TLI, Context, RoundToAlign);
686 TLI);