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

Components of a pointer excluding address. More...

#include "llvm/UBAwareInterpreter/Value.h"

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

Public Member Functions

 Provenance (IntrusiveRefCntPtr< MemoryObject > Obj)
LLVM_ABI IntrusiveRefCntPtr< Provenance > getWithKnownMemoryObject (MemoryObject &Obj)
MemoryObject * getMemoryObject () const
bool isWildcard () const
Public Member Functions inherited from llvm::RefCountedBase< Provenance >
unsigned UseCount () const
void Retain () const
void Release () const

Static Public Member Functions

static LLVM_ABI IntrusiveRefCntPtr< Provenance > nullary ()

Friends

class Context

Additional Inherited Members

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

Detailed Description

Components of a pointer excluding address.

They are shared between pointer values, as most of operations don't change the provenance. Each node will be assigned a unique, pointer-sized tag, which is used to represent the pointer in the memory. The provenance can be either concrete or wildcard, as determined by the cases below: Obj Wildcard State Null Null Invalid Null NonNull Wildcard NonNull Null Concrete NonNull NonNull Wildcard (associated with a specific MO)

Definition at line 188 of file Value.h.

Constructor & Destructor Documentation

◆ Provenance()

llvm::ubi::Provenance::Provenance ( IntrusiveRefCntPtr< MemoryObject > Obj)
inline

Definition at line 216 of file Value.h.

References llvm::move().

Member Function Documentation

◆ getMemoryObject()

MemoryObject * llvm::ubi::Provenance::getMemoryObject ( ) const
inline

Definition at line 220 of file Value.h.

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

◆ getWithKnownMemoryObject()

IntrusiveRefCntPtr< Provenance > llvm::ubi::Provenance::getWithKnownMemoryObject ( MemoryObject & Obj)

Definition at line 26 of file Value.cpp.

References assert(), and llvm::makeIntrusiveRefCnt().

◆ isWildcard()

bool llvm::ubi::Provenance::isWildcard ( ) const
inline

Definition at line 221 of file Value.h.

◆ nullary()

IntrusiveRefCntPtr< Provenance > llvm::ubi::Provenance::nullary ( )
static

◆ Context

friend class Context
friend

Definition at line 213 of file Value.h.

References Context.

Referenced by Context.


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