Gets the alignment argument for an aligned_alloc-like function.
Declared in <llvm/Analysis/MemoryBuiltins.h>
Value*
getAllocAlignment(
CallBase const* V,
TargetLibraryInfo const* TLI);
Uses either built-in knowledge based on fuction names/signatures or allocalign attributes. Note: the Value returned may not indicate a valid alignment, per the definition of the allocalign attribute.
The alignment argument, or nullptr if none is found.
| Name | Description |
|---|---|
| V | Call that may be an aligned allocation function. |
| TLI | Target library info used to identify allocation functions. |