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.

Synopsis

Declared in <llvm/Analysis/MemoryBuiltins.h>

template<
    typename T,
    class C>
struct SizeOffsetType;

Member Functions

Name

Description

SizeOffsetType [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.

Data Members

Name

Description

Offset

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

Size

Size of the underlying object, or an unknown sentinel.

Derived Classes

Name

Description

SizeOffsetAPInt

SizeOffsetAPInt ‐ Used by ObjectSizeOffsetVisitor, which works with APInts.

SizeOffsetValue

Size and offset pair represented as IR Values.

SizeOffsetWeakTrackingVH

SizeOffsetWeakTrackingVH ‐ Used by ObjectSizeOffsetEvaluator in a DenseMap.

Created with MrDocs