ΒΆ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.

Declared at: llvm/include/llvm/Analysis/MemoryBuiltins.h:209

Parameters

const llvm::Value* Ptr
uint64_t& Size
const llvm::DataLayout& DL
const llvm::TargetLibraryInfo* TLI
llvm::ObjectSizeOpts Opts = {}