LLVM 20.0.0git
|
OffsetSpan - Used internally by ObjectSizeOffsetVisitor
.
More...
#include "llvm/Analysis/MemoryBuiltins.h"
Public Member Functions | |
OffsetSpan ()=default | |
Number of allocated bytes after this point. | |
OffsetSpan (APInt Before, APInt After) | |
bool | knownBefore () const |
bool | knownAfter () const |
bool | anyKnown () const |
bool | bothKnown () const |
bool | operator== (const OffsetSpan &RHS) const |
bool | operator!= (const OffsetSpan &RHS) const |
Static Public Member Functions | |
static bool | known (const APInt &V) |
Public Attributes | |
APInt | Before |
APInt | After |
Number of allocated bytes before this point. | |
OffsetSpan - Used internally by ObjectSizeOffsetVisitor
.
Represents a point in memory as a pair of allocated bytes before and after it.
Before
and After
fields are signed values. It makes it possible to represent out-of-bound access, e.g. as a result of a GEP, at the expense of not being able to represent very large allocation.
Definition at line 230 of file MemoryBuiltins.h.
|
default |
Number of allocated bytes after this point.
Definition at line 235 of file MemoryBuiltins.h.
|
inline |
Definition at line 239 of file MemoryBuiltins.h.
References knownAfter(), and knownBefore().
|
inline |
Definition at line 240 of file MemoryBuiltins.h.
References knownAfter(), and knownBefore().
Referenced by llvm::ObjectSizeOffsetVisitor::compute(), and llvm::ObjectSizeOffsetVisitor::visitLoadInst().
Definition at line 247 of file MemoryBuiltins.h.
Referenced by knownAfter(), and knownBefore().
|
inline |
Definition at line 238 of file MemoryBuiltins.h.
References After, and known().
Referenced by anyKnown(), bothKnown(), and llvm::ObjectSizeOffsetVisitor::compute().
|
inline |
Definition at line 237 of file MemoryBuiltins.h.
References Before, and known().
Referenced by anyKnown(), bothKnown(), and llvm::ObjectSizeOffsetVisitor::compute().
|
inline |
Definition at line 245 of file MemoryBuiltins.h.
References RHS.
|
inline |
Definition at line 242 of file MemoryBuiltins.h.
APInt llvm::OffsetSpan::After |
Number of allocated bytes before this point.
Definition at line 232 of file MemoryBuiltins.h.
Referenced by llvm::ObjectSizeOffsetVisitor::compute(), knownAfter(), and operator==().
APInt llvm::OffsetSpan::Before |
Definition at line 231 of file MemoryBuiltins.h.
Referenced by llvm::ObjectSizeOffsetVisitor::compute(), knownBefore(), and operator==().