llvm::isAllocLikeFn

Tests if a value is a call or invoke to a library function that allocates memory (either malloc, calloc, or strdup like).

Synopsis

Declared in <llvm/Analysis/MemoryBuiltins.h>

bool
isAllocLikeFn(
    Value const* V,
    TargetLibraryInfo const* TLI);

Return Value

True if V is a call or invoke to such an allocation function.

Parameters

NameDescription
VValue that may be a call or invoke.
TLITarget library info used to identify allocation functions.