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

Organizes several Phases as a pipeline. More...

#include <mim/phase/phase.h>

Inheritance diagram for mim::Pipeline:
[legend]

Public Member Functions

 Pipeline (World &world)
 
void start () override
 Actual entry.
 
phases
const auto & phases () const
 
template<class P , class... Args>
auto add (Args &&... args)
 Add a Phase.
 
- Public Member Functions inherited from mim::Phase
 Phase (World &world, std::string_view name, bool dirty)
 
virtual ~Phase ()=default
 
Worldworld ()
 
std::string_view name () const
 
bool is_dirty () const
 
virtual void run ()
 Entry point and generates some debug output; invokes Phase::start.
 

Additional Inherited Members

- Static Public Member Functions inherited from mim::Phase
template<class P , class... Args>
static void run (Args &&... args)
 Runs a single Phase.
 
- Protected Member Functions inherited from mim::Phase
- Protected Attributes inherited from mim::Phase
Worldworld_
 
std::string name_
 
bool dirty_
 

Detailed Description

Organizes several Phases as a pipeline.

Definition at line 113 of file phase.h.

Constructor & Destructor Documentation

◆ Pipeline()

mim::Pipeline::Pipeline ( World & world)
inline

Definition at line 115 of file phase.h.

Member Function Documentation

◆ add()

template<class P , class... Args>
auto mim::Pipeline::add ( Args &&... args)
inline

Add a Phase.

You don't need to pass the World to args - it will be passed automatically. If P is a Pass, this method will wrap this in a PassPhase.

Definition at line 127 of file phase.h.

References add(), and mim::Phase::world().

Referenced by add().

◆ phases()

const auto & mim::Pipeline::phases ( ) const
inline

Definition at line 122 of file phase.h.

Referenced by start().

◆ start()

void mim::Pipeline::start ( )
overridevirtual

Actual entry.

Implements mim::Phase.

Definition at line 39 of file phase.cpp.

References phases().


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