If a function is part of an allocation family (e.g. malloc/realloc/calloc/free), return the identifier for its family of functions.
Declared in <llvm/Analysis/MemoryBuiltins.h>
std::optional<StringRef>
getAllocationFamily(
Value const* I,
TargetLibraryInfo const* TLI);
The family identifier, or std::nullopt if not in a family.
| Name | Description |
|---|---|
| I | Value that may be a call in an allocation family. |
| TLI | Target library info used to identify allocation functions. |