LLVM 24.0.0git
llvm::ubi::MemoryObject Class Reference

#include "llvm/UBAwareInterpreter/Context.h"

Inheritance diagram for llvm::ubi::MemoryObject:
[legend]

Public Member Functions

LLVM_ABI MemoryObject (uint64_t Addr, uint64_t Size, StringRef Name, unsigned AS, MemInitKind InitKind, MemAllocKind AllocKind, bool IsIRGlobalValue=false)
 MemoryObject (const MemoryObject &)=delete
 MemoryObject (MemoryObject &&)=delete
MemoryObject & operator= (const MemoryObject &)=delete
MemoryObject & operator= (MemoryObject &&)=delete
LLVM_ABI ~MemoryObject ()
uint64_t getAddress () const
uint64_t getSize () const
StringRef getName () const
unsigned getAddressSpace () const
MemoryObjectState getState () const
void setState (MemoryObjectState S)
MemAllocKind getAllocKind () const
bool isIRGlobalValue () const
bool isConstant () const
void setIsConstant (bool C)
bool isInaccessible () const
void setIsInaccessible (bool V)
bool inBounds (const APInt &NewAddr) const
Byte & operator[] (uint64_t Offset)
ArrayRef< Byte > getBytes () const
MutableArrayRef< Byte > getBytes ()
LLVM_ABI bool isGlobal () const
LLVM_ABI bool isStackAllocated () const
LLVM_ABI bool isHeapAllocated () const
Public Member Functions inherited from llvm::RefCountedBase< MemoryObject >
unsigned UseCount () const
void Retain () const
void Release () const

Friends

class Context

Additional Inherited Members

Protected Member Functions inherited from llvm::RefCountedBase< MemoryObject >
 RefCountedBase ()=default
RefCountedBase & operator= (const RefCountedBase &)=delete
 ~RefCountedBase ()

Detailed Description

Definition at line 105 of file Context.h.

Constructor & Destructor Documentation

◆ MemoryObject() [1/3]

llvm::ubi::MemoryObject::MemoryObject ( uint64_t Addr,
uint64_t Size,
StringRef Name,
unsigned AS,
MemInitKind InitKind,
MemAllocKind AllocKind,
bool IsIRGlobalValue = false )

◆ MemoryObject() [2/3]

llvm::ubi::MemoryObject::MemoryObject ( const MemoryObject & )
delete

References MemoryObject().

◆ MemoryObject() [3/3]

llvm::ubi::MemoryObject::MemoryObject ( MemoryObject && )
delete

References MemoryObject().

◆ ~MemoryObject()

llvm::ubi::MemoryObject::~MemoryObject ( )
default

References LLVM_ABI.

Member Function Documentation

◆ getAddress()

uint64_t llvm::ubi::MemoryObject::getAddress ( ) const
inline

Definition at line 134 of file Context.h.

References uint64_t.

◆ getAddressSpace()

unsigned llvm::ubi::MemoryObject::getAddressSpace ( ) const
inline

Definition at line 137 of file Context.h.

◆ getAllocKind()

MemAllocKind llvm::ubi::MemoryObject::getAllocKind ( ) const
inline

Definition at line 140 of file Context.h.

◆ getBytes() [1/2]

MutableArrayRef< Byte > llvm::ubi::MemoryObject::getBytes ( )
inline

Definition at line 156 of file Context.h.

◆ getBytes() [2/2]

ArrayRef< Byte > llvm::ubi::MemoryObject::getBytes ( ) const
inline

Definition at line 155 of file Context.h.

Referenced by llvm::ubi::Context::load(), and llvm::ubi::Context::store().

◆ getName()

StringRef llvm::ubi::MemoryObject::getName ( ) const
inline

Definition at line 136 of file Context.h.

◆ getSize()

uint64_t llvm::ubi::MemoryObject::getSize ( ) const
inline

Definition at line 135 of file Context.h.

References uint64_t.

◆ getState()

MemoryObjectState llvm::ubi::MemoryObject::getState ( ) const
inline

Definition at line 138 of file Context.h.

◆ inBounds()

bool llvm::ubi::MemoryObject::inBounds ( const APInt & NewAddr) const
inline

Definition at line 147 of file Context.h.

References llvm::APInt::uge(), and llvm::APInt::ule().

Referenced by llvm::ubi::Context::checkProvenance().

◆ isConstant()

bool llvm::ubi::MemoryObject::isConstant ( ) const
inline

Definition at line 142 of file Context.h.

◆ isGlobal()

bool llvm::ubi::MemoryObject::isGlobal ( ) const

Definition at line 1365 of file Context.cpp.

References llvm::ubi::Global.

◆ isHeapAllocated()

bool llvm::ubi::MemoryObject::isHeapAllocated ( ) const

◆ isInaccessible()

bool llvm::ubi::MemoryObject::isInaccessible ( ) const
inline

Definition at line 144 of file Context.h.

◆ isIRGlobalValue()

bool llvm::ubi::MemoryObject::isIRGlobalValue ( ) const
inline

Definition at line 141 of file Context.h.

◆ isStackAllocated()

bool llvm::ubi::MemoryObject::isStackAllocated ( ) const

Definition at line 1369 of file Context.cpp.

References llvm::ubi::Stack.

◆ operator=() [1/2]

MemoryObject & llvm::ubi::MemoryObject::operator= ( const MemoryObject & )
delete

References MemoryObject().

◆ operator=() [2/2]

MemoryObject & llvm::ubi::MemoryObject::operator= ( MemoryObject && )
delete

References MemoryObject().

◆ operator[]()

Byte & llvm::ubi::MemoryObject::operator[] ( uint64_t Offset)
inline

Definition at line 151 of file Context.h.

References assert(), llvm::Offset, and uint64_t.

◆ setIsConstant()

void llvm::ubi::MemoryObject::setIsConstant ( bool C)
inline

Definition at line 143 of file Context.h.

References C().

◆ setIsInaccessible()

void llvm::ubi::MemoryObject::setIsInaccessible ( bool V)
inline

Definition at line 145 of file Context.h.

References V.

◆ setState()

void llvm::ubi::MemoryObject::setState ( MemoryObjectState S)
inline

Definition at line 139 of file Context.h.

◆ Context

friend class Context
friend

Definition at line 122 of file Context.h.

References Context, LLVM_ABI, and uint64_t.

Referenced by Context.


The documentation for this class was generated from the following files: