Bitmask describing the role and properties of an allocation function for the allockind attribute (alloc, realloc, free, and returned memory state).
Declared in <llvm/IR/Attributes.h>
enum class AllocFnKind : uint64_t;
| Name | Description |
|---|---|
Unknown | Unknown or unspecified allocation-function kind. |
Alloc | Allocator function returns a new allocation. |
Realloc | Allocator function resizes the allocptr argument |
Free | Allocator function frees the allocptr argument. |
Uninitialized | Allocator function returns uninitialized memory. |
Zeroed | Allocator function returns zero-initialized memory |
Aligned | Allocator function aligns allocations per the allocalign argument |
LLVM_BITMASK_LARGEST_ENUMERATOR | Sentinel equal to the largest enumerator. |