ΒΆllvm::Value* getAllocAlignment(
const llvm::CallBase* V,
const llvm::TargetLibraryInfo* TLI)
llvm::Value* getAllocAlignment(
const llvm::CallBase* V,
const llvm::TargetLibraryInfo* TLI)
Description
Gets the alignment argument for an aligned_alloc-like function, using 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.
Declared at: llvm/include/llvm/Analysis/MemoryBuiltins.h:103
Parameters
- const llvm::CallBase* V
- const llvm::TargetLibraryInfo* TLI