llvm::isAllocationFn

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,
    TargetLibraryInfo const* TLI);

Parameters

NameDescription
VLLVM Value Representation
TLIProvides information about what library functions are available for the current target.