ΒΆbool getObjectSize(
const llvm::Value* Ptr,
uint64_t& Size,
const llvm::DataLayout& DL,
const llvm::TargetLibraryInfo* TLI,
llvm::ObjectSizeOpts Opts = {})
bool getObjectSize(
const llvm::Value* Ptr,
uint64_t& Size,
const llvm::DataLayout& DL,
const llvm::TargetLibraryInfo* TLI,
llvm::ObjectSizeOpts Opts = {})
Description
Compute the size of the object pointed by Ptr. Returns true and the object size in Size if successful, and false otherwise. In this context, by object we mean the region of memory starting at Ptr to the end of the underlying object pointed to by Ptr. WARNING: The object size returned is the allocation size. This does not imply dereferenceability at site of use since the object may be freeed in between.
Declared at: llvm/include/llvm/Analysis/MemoryBuiltins.h:167
Parameters
- const llvm::Value* Ptr
- uint64_t& Size
- const llvm::DataLayout& DL
- const llvm::TargetLibraryInfo* TLI
- llvm::ObjectSizeOpts Opts = {}