ΒΆllvm::Value* getMallocArraySize(
llvm::CallInst* CI,
const llvm::DataLayout& DL,
const llvm::TargetLibraryInfo* TLI,
bool LookThroughSExt = false)
llvm::Value* getMallocArraySize(
llvm::CallInst* CI,
const llvm::DataLayout& DL,
const llvm::TargetLibraryInfo* TLI,
bool LookThroughSExt = false)
Description
getMallocArraySize - Returns the array size of a malloc call. If the argument passed to malloc is a multiple of the size of the malloced type, then return that multiple. For non-array mallocs, the multiple is constant 1. Otherwise, return NULL for mallocs whose array size cannot be determined.
Declared at: llvm/include/llvm/Analysis/MemoryBuiltins.h:147
Parameters
- llvm::CallInst* CI
- const llvm::DataLayout& DL
- const llvm::TargetLibraryInfo* TLI
- bool LookThroughSExt = false