LLVM 22.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 246 of file MemoryBuiltins.h.
|
default |
Number of allocated bytes after this point.
Referenced by operator!=(), and operator==().
Definition at line 251 of file MemoryBuiltins.h.
|
inline |
Definition at line 255 of file MemoryBuiltins.h.
References knownAfter(), and knownBefore().
|
inline |
Definition at line 256 of file MemoryBuiltins.h.
References knownAfter(), and knownBefore().
Referenced by llvm::ObjectSizeOffsetVisitor::compute(), and llvm::ObjectSizeOffsetVisitor::visitLoadInst().
Definition at line 263 of file MemoryBuiltins.h.
Referenced by knownAfter(), and knownBefore().
|
inline |
Definition at line 254 of file MemoryBuiltins.h.
References After, and known().
Referenced by anyKnown(), bothKnown(), and llvm::ObjectSizeOffsetVisitor::compute().
|
inline |
Definition at line 253 of file MemoryBuiltins.h.
References Before, and known().
Referenced by anyKnown(), bothKnown(), and llvm::ObjectSizeOffsetVisitor::compute().
|
inline |
Definition at line 261 of file MemoryBuiltins.h.
References OffsetSpan(), and RHS.
|
inline |
Definition at line 258 of file MemoryBuiltins.h.
References After, Before, OffsetSpan(), and RHS.
APInt llvm::OffsetSpan::After |
Number of allocated bytes before this point.
Definition at line 248 of file MemoryBuiltins.h.
Referenced by llvm::ObjectSizeOffsetVisitor::compute(), knownAfter(), OffsetSpan(), and operator==().
APInt llvm::OffsetSpan::Before |
Definition at line 247 of file MemoryBuiltins.h.
Referenced by llvm::ObjectSizeOffsetVisitor::compute(), knownBefore(), OffsetSpan(), and operator==().