MimIR 0.1
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
mim::Use Class Reference

References a user. More...

#include <mim/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 108 of file def.h.

Constructor & Destructor Documentation

◆ Use() [1/2]

mim::Use::Use ( )
inline

Definition at line 112 of file def.h.

◆ Use() [2/2]

mim::Use::Use ( const Def * def,
size_t index )
inline

Definition at line 113 of file def.h.

Member Function Documentation

◆ def()

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

Definition at line 118 of file def.h.

◆ index()

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

Definition at line 117 of file def.h.

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

◆ operator const Def *()

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

Definition at line 119 of file def.h.

◆ operator->()

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

Definition at line 120 of file def.h.

◆ operator==()

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

Definition at line 121 of file def.h.

Member Data Documentation

◆ Type

size_t mim::Use::Type = -1_s
staticconstexpr

Definition at line 110 of file def.h.

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


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