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

#include <mim/pass/pipelinebuilder.h>

Public Member Functions

 PipelineBuilder (World &world)
 
Worldworld ()
 
template<class P , class... Args>
void add_pass (const Def *def, Args &&... args)
 
template<class P , class... Args>
void add_phase (Args &&... args)
 
void begin_pass_phase ()
 
void end_pass_phase ()
 
void def2pass (const Def *, Pass *p)
 
Passpass (const Def *)
 
void run_pipeline ()
 

Detailed Description

Definition at line 11 of file pipelinebuilder.h.

Constructor & Destructor Documentation

◆ PipelineBuilder()

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

Definition at line 13 of file pipelinebuilder.h.

Member Function Documentation

◆ add_pass()

template<class P , class... Args>
void mim::PipelineBuilder::add_pass ( const Def * def,
Args &&... args )
inline

Definition at line 20 of file pipelinebuilder.h.

References def2pass(), and pass().

Referenced by mim::register_pass(), and mim::register_pass_with_arg().

◆ add_phase()

template<class P , class... Args>
void mim::PipelineBuilder::add_phase ( Args &&... args)
inline

Definition at line 25 of file pipelinebuilder.h.

Referenced by mim_get_plugin(), and mim::register_phase().

◆ begin_pass_phase()

void mim::PipelineBuilder::begin_pass_phase ( )

Definition at line 24 of file pipelinebuilder.cpp.

Referenced by add_passes().

◆ def2pass()

void mim::PipelineBuilder::def2pass ( const Def * def,
Pass * p )

Definition at line 18 of file pipelinebuilder.cpp.

References mim::Def::gid(), and mim::Def::world().

Referenced by add_pass(), and mim_get_plugin().

◆ end_pass_phase()

void mim::PipelineBuilder::end_pass_phase ( )

Definition at line 25 of file pipelinebuilder.cpp.

Referenced by add_passes().

◆ pass()

Pass * mim::PipelineBuilder::pass ( const Def * def)

Definition at line 22 of file pipelinebuilder.cpp.

Referenced by add_pass(), and mim::register_pass_with_arg().

◆ run_pipeline()

void mim::PipelineBuilder::run_pipeline ( )

Definition at line 31 of file pipelinebuilder.cpp.

Referenced by mim::optimize().

◆ world()

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

Definition at line 17 of file pipelinebuilder.h.


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