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

Organizes several Phases as a pipeline. More...

#include <thorin/phase/phase.h>

Inheritance diagram for thorin::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 thorin::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 thorin::Phase
template<class P , class... Args>
static void run (Args &&... args)
 Runs a single Phase.
 
- Protected Attributes inherited from thorin::Phase
Worldworld_
 
std::string name_
 
bool dirty_
 

Detailed Description

Organizes several Phases as a pipeline.

Definition at line 114 of file phase.h.

Constructor & Destructor Documentation

◆ Pipeline()

thorin::Pipeline::Pipeline ( World world)
inline

Definition at line 116 of file phase.h.

Member Function Documentation

◆ add()

template<class P , class... Args>
auto thorin::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 128 of file phase.h.

References thorin::Phase::world().

◆ phases()

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

Definition at line 123 of file phase.h.

Referenced by start().

◆ start()

void thorin::Pipeline::start ( )
overridevirtual

Actual entry.

Implements thorin::Phase.

Definition at line 41 of file phase.cpp.

References phases().


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