[#llvm-isAllocationFn-07] = xref:llvm.adoc[llvm]::isAllocationFn :relfileprefix: ../ :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isAllocationFn( xref:llvm/Value.adoc[Value] const* V, xref:llvm/function_ref-03.adoc[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 [cols="1,4"] |=== | Name| Description | *V* | Value that may be a call or invoke. | *GetTLI* | Callback that returns TargetLibraryInfo for a Function. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#