llvm::SizeOffsetValue

Size and offset pair represented as IR Values.

Synopsis

Declared in <llvm/Analysis/MemoryBuiltins.h>

struct SizeOffsetValue
    : SizeOffsetType<Value*, SizeOffsetValue>

Description

Used by ObjectSizeOffsetEvaluator, which works with Values.

Base Classes

NameDescription
SizeOffsetType<Value*, SizeOffsetValue>SizeOffsetType - A base template class for the object size visitors. Used here as a self-documenting way to handle the values rather than using a std::pair.

Member Functions

NameDescription
SizeOffsetValue [constructor]Constructors
anyKnown Return true if either Size or Offset is known.
bothKnown Return true if both Size and Offset are known.
knownOffset Return true if Offset is known.
knownSize Return true if Size is known.
operator== Return true if this size/offset pair equals RHS.
operator!= Return true if this size/offset pair differs from RHS.

Static Member Functions

NameDescription
known Return true if V is a known non-null Value.

Data Members

NameDescription
Offset Offset from the start of the underlying object, or an unknown sentinel.
Size Size of the underlying object, or an unknown sentinel.