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).
Synopsis
Declared in <llvm/Analysis/MemoryBuiltins.h>
bool
isAllocationFn(
Value const* V,
function_ref<TargetLibraryInfo const&(xref:llvm/Function.adoc[Function&)>] GetTLI);
Return Value
True if V is a call or invoke to such an allocation function.
Parameters
Name |
Description |
V |
Value that may be a call or invoke. |
GetTLI |
Callback that returns TargetLibraryInfo for a Function. |
Created with MrDocs