Size and offset pair represented as IR Values.
Declared in <llvm/Analysis/MemoryBuiltins.h>
struct SizeOffsetValue
: SizeOffsetType<Value*, SizeOffsetValue>
Used by ObjectSizeOffsetEvaluator, which works with Values.
| Name | Description |
|---|---|
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. |
| Name | Description |
|---|---|
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. |
| Name | Description |
|---|---|
known | Return true if V is a known non-null Value. |
| 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. |