|
bool | llvm::isAllocationFn (const Value *V, const TargetLibraryInfo *TLI) |
| Tests if a value is a call or invoke to a library function that allocates or reallocates memory (either malloc, calloc, realloc, or strdup like). More...
|
|
bool | llvm::isAllocationFn (const Value *V, function_ref< const TargetLibraryInfo &(Function &)> GetTLI) |
|
bool | llvm::isMallocOrCallocLikeFn (const Value *V, const TargetLibraryInfo *TLI) |
| Tests if a value is a call or invoke to a library function that allocates memory similar to malloc or calloc. More...
|
|
bool | llvm::isAllocLikeFn (const Value *V, const TargetLibraryInfo *TLI) |
| Tests if a value is a call or invoke to a library function that allocates memory (either malloc, calloc, or strdup like). More...
|
|
bool | llvm::isReallocLikeFn (const Value *V, const TargetLibraryInfo *TLI) |
| Tests if a value is a call or invoke to a library function that reallocates memory (e.g., realloc). More...
|
|
bool | llvm::isReallocLikeFn (const Function *F, const TargetLibraryInfo *TLI) |
| Tests if a function is a call or invoke to a library function that reallocates memory (e.g., realloc). More...
|
|
bool | llvm::isLibFreeFunction (const Function *F, const LibFunc TLIFn) |
| isLibFreeFunction - Returns true if the function is a builtin free() More...
|
|
const CallInst * | llvm::isFreeCall (const Value *I, const TargetLibraryInfo *TLI) |
| isFreeCall - Returns non-null if the value is a call to the builtin free() More...
|
|
CallInst * | llvm::isFreeCall (Value *I, const TargetLibraryInfo *TLI) |
|
bool | llvm::isAllocRemovable (const CallBase *V, const TargetLibraryInfo *TLI) |
| Return false if the allocation can have side effects on the program state we are required to preserve beyond the effect of allocating a new object. More...
|
|
Value * | llvm::getAllocAlignment (const CallBase *V, const TargetLibraryInfo *TLI) |
| Gets the alignment argument for an aligned_alloc-like function, using either built-in knowledge based on fuction names/signatures or allocalign attributes. More...
|
|
Optional< APInt > | llvm::getAllocSize (const CallBase *CB, const TargetLibraryInfo *TLI, std::function< const Value *(const Value *)> Mapper) |
| Return the size of the requested allocation. More...
|
|
Constant * | llvm::getInitialValueOfAllocation (const Value *V, const TargetLibraryInfo *TLI, Type *Ty) |
| If this is a call to an allocation function that initializes memory to a fixed value, return said value in the requested type. More...
|
|
Optional< StringRef > | llvm::getAllocationFamily (const Value *I, const TargetLibraryInfo *TLI) |
| If a function is part of an allocation family (e.g. More...
|
|
bool | llvm::getObjectSize (const Value *Ptr, uint64_t &Size, const DataLayout &DL, const TargetLibraryInfo *TLI, ObjectSizeOpts Opts={}) |
| Compute the size of the object pointed by Ptr. More...
|
|
Value * | llvm::lowerObjectSizeCall (IntrinsicInst *ObjectSize, const DataLayout &DL, const TargetLibraryInfo *TLI, bool MustSucceed) |
| Try to turn a call to @llvm.objectsize into an integer value of the given Type. More...
|
|
Value * | llvm::lowerObjectSizeCall (IntrinsicInst *ObjectSize, const DataLayout &DL, const TargetLibraryInfo *TLI, AAResults *AA, bool MustSucceed) |
|