Thorin 1.9.0
The Higher ORder INtermediate representation
Loading...
Searching...
No Matches
thorin::Use Class Reference

References a user. More...

#include <thorin/def.h>

Public Member Functions

 Use ()
 
 Use (const Def *def, size_t index)
 
size_t index () const
 
const Defdef () const
 
 operator const Def * () const
 
const Defoperator-> () const
 
bool operator== (Use other) const
 

Static Public Attributes

static constexpr size_t Type = -1_s
 

Detailed Description

References a user.

A Def u which uses Def d as i^th operand is a Use with Use::index i of Def d.

Definition at line 109 of file def.h.

Constructor & Destructor Documentation

◆ Use() [1/2]

thorin::Use::Use ( )
inline

Definition at line 113 of file def.h.

◆ Use() [2/2]

thorin::Use::Use ( const Def def,
size_t  index 
)
inline

Definition at line 114 of file def.h.

Member Function Documentation

◆ def()

const Def * thorin::Use::def ( ) const
inline

Definition at line 119 of file def.h.

◆ index()

size_t thorin::Use::index ( ) const
inline

Definition at line 118 of file def.h.

Referenced by thorin::UseHash::operator()().

◆ operator const Def *()

thorin::Use::operator const Def * ( ) const
inline

Definition at line 120 of file def.h.

◆ operator->()

const Def * thorin::Use::operator-> ( ) const
inline

Definition at line 121 of file def.h.

◆ operator==()

bool thorin::Use::operator== ( Use  other) const
inline

Definition at line 122 of file def.h.

Member Data Documentation

◆ Type

constexpr size_t thorin::Use::Type = -1_s
staticconstexpr

Definition at line 111 of file def.h.

Referenced by thorin::Def::Def(), thorin::Def::set_type(), and thorin::Def::unset_type().


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