MimIR 0.1
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
mim::Phase Class Referenceabstract

As opposed to a Pass, a Phase does one thing at a time and does not mix with other Phases. More...

#include <mim/phase/phase.h>

Inheritance diagram for mim::Phase:
[legend]

Public Member Functions

Construction & Destruction
 Phase (World &world, std::string name)
 
virtual ~Phase ()=default
 
virtual void reset ()
 
Getters
Worldworld ()
 
std::string_view name () const
 
bool todo () const
 

Protected Member Functions

virtual void start ()=0
 Actual entry.
 

Protected Attributes

bool todo_ = false
 Set to true to indicate that you want to rerun all Phasees in current your fixed-point PhaseMan.
 

run

virtual void run ()
 Entry point and generates some debug output; invokes Phase::start.
 
template<class P, class... Args>
static void run (Args &&... args)
 Runs a single Phase.
 

Detailed Description

As opposed to a Pass, a Phase does one thing at a time and does not mix with other Phases.

They are supposed to classically run one after another.

Definition at line 20 of file phase.h.

Constructor & Destructor Documentation

◆ Phase()

◆ ~Phase()

virtual mim::Phase::~Phase ( )
virtualdefault

Member Function Documentation

◆ name()

◆ reset()

virtual void mim::Phase::reset ( )
inlinevirtual

Reimplemented in mim::BetaRedPhase, mim::EtaExpPhase, and mim::RWPhase.

Definition at line 29 of file phase.h.

References todo_.

Referenced by mim::RWPhase::reset(), and mim::PhaseMan::start().

◆ run() [1/2]

void mim::Phase::run ( )
virtual

Entry point and generates some debug output; invokes Phase::start.

Definition at line 5 of file phase.cpp.

References name(), start(), mim::World::verify(), and world().

Referenced by mim::ClosedCollector< M >::collect(), mim::ll::emit(), main(), and mim::PassMan::run().

◆ run() [2/2]

template<class P, class... Args>
static void mim::Phase::run ( Args &&... args)
inlinestatic

Runs a single Phase.

Definition at line 45 of file phase.h.

◆ start()

◆ todo()

bool mim::Phase::todo ( ) const
inline

Definition at line 36 of file phase.h.

References todo_.

Referenced by mim::FPPhase::start().

◆ world()

Member Data Documentation

◆ todo_

bool mim::Phase::todo_ = false
protected

Set to true to indicate that you want to rerun all Phasees in current your fixed-point PhaseMan.

Definition at line 55 of file phase.h.

Referenced by reset(), mim::BetaRedPhase::rewrite_imm_App(), mim::PhaseMan::start(), and todo().


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