If this is a call to an allocation function that initializes memory to a fixed value, return said value in the requested type. Otherwise, return nullptr.
Declared in <llvm/Analysis/MemoryBuiltins.h>
Constant*
getInitialValueOfAllocation(
Value const* V,
TargetLibraryInfo const* TLI,
Type* Ty);
The initial value in Ty, or nullptr if not an initializing allocation.
| Name | Description |
|---|---|
| V | Value that may be an initializing allocation call. |
| TLI | Target library info used to identify allocation functions. |
| Ty | Type in which to materialize the initial value. |