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

#include <mim/phase/unload.h>

Inheritance diagram for mim::Unload:
[legend]

Public Member Functions

 Unload (World &world, flags_t annex)
void apply (std::string)
void apply (const App *app) final
 Invoked if your Phase has additional args.
void apply (Phase &p) final
 Dito, but invoked by Phase::recreate.
Public Member Functions inherited from mim::Phase
 Phase (World &world, std::string name)
 Phase (World &world, flags_t annex)
virtual ~Phase ()=default
virtual std::unique_ptr< Phaserecreate ()
 Creates a new instance; needed by a fixed-point PhaseMan.
virtual bool redirects () const
 If true, Phase::create uses take_resolved().
virtual std::unique_ptr< Phasetake_resolved ()
 The Phase to use instead; nullptr means elide.
Worldworld ()
Driverdriver ()
const fe::Log & log () const
std::string_view name () const
flags_t annex () const
const fe::Vector< std::string > & args ()
 Command-line arguments passed to this Phase's plugin via -X <plugin>:<arg>.
bool todo () const
void invalidate (bool todo=true)
 Signals that another round of fixed-point iteration is required, either as part of.
virtual void run ()
 Entry point and generates some debug output; invokes Phase::start.
void profile_count (std::string_view key, uint64_t n=1)
 Adds n to the custom fe::Profiler counter key of the current run; no-op unless profiling is enabled.

Private Member Functions

void start () final
 Actual entry.

Additional Inherited Members

Static Public Member Functions inherited from mim::Phase
static std::unique_ptr< Phasecreate (const Flags2Phases &phases, const Def *def)
template<class A, class P>
static void hook (Flags2Phases &phases)
template<class P, class... Args>
static void run (Args &&... args)
 Runs a single Phase.
Protected Attributes inherited from mim::Phase
std::string name_

Detailed Description

Definition at line 7 of file unload.h.

Constructor & Destructor Documentation

◆ Unload()

mim::Unload::Unload ( World & world,
flags_t annex )
inline

Definition at line 9 of file unload.h.

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

Referenced by apply().

Member Function Documentation

◆ apply() [1/3]

void mim::Unload::apply ( const App * app)
inlinefinalvirtual

Invoked if your Phase has additional args.

Reimplemented from mim::Phase.

Definition at line 13 of file unload.h.

References apply(), and mim::tuple2str().

Referenced by apply().

◆ apply() [2/3]

void mim::Unload::apply ( Phase & p)
inlinefinalvirtual

Dito, but invoked by Phase::recreate.

Reimplemented from mim::Phase.

Definition at line 14 of file unload.h.

References apply(), mim::Phase::Phase(), and Unload().

Referenced by apply().

◆ apply() [3/3]

void mim::Unload::apply ( std::string plugin)

Definition at line 7 of file unload.cpp.

References mim::Annex::mangle(), and mim::Phase::name_.

◆ start()

void mim::Unload::start ( )
finalprivatevirtual

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