struct ObjectSizeOpts

Declaration

struct ObjectSizeOpts { /* full declaration omitted */ };

Description

Various options to control the behavior of getObjectSize.

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

Member Variables

public llvm::ObjectSizeOpts::Mode EvalMode = Mode::Exact
How we want to evaluate this object's size.
public bool RoundToAlign = false
Whether to round the result up to the alignment of allocas, byval arguments, and global variables.
public bool NullIsUnknownSize = false
If this is true, null pointers in address space 0 will be treated as though they can't be evaluated. Otherwise, null is always considered to point to a 0 byte region of memory.