Visits the closed Cns with a body of a scheduled World for one Target, each before the ones that call or jump to it. More...
#include <mim/plug/mach/phase.h>
Public Member Functions | |
| FunPhase (World &world, flags_t annex, const Target &target) | |
| const Target & | target () const |
| const fe::Vector< std::string > & | target_args () |
| The arguments -X <backend>:<arg> of the Target's backend plugin. | |
| const LamSet & | known () const |
| The functions with a convention of their own, see mach::known. | |
| 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< Phase > | recreate () |
| Creates a new instance; needed by a fixed-point PhaseMan. | |
| virtual void | apply (const App *) |
| Invoked if your Phase has additional args. | |
| virtual void | apply (Phase &) |
| Dito, but invoked by Phase::recreate. | |
| virtual bool | redirects () const |
| If true, Phase::create uses take_resolved(). | |
| virtual std::unique_ptr< Phase > | take_resolved () |
| The Phase to use instead; nullptr means elide. | |
| World & | world () |
| Driver & | driver () |
| 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. | |
Protected Member Functions | |
| virtual void | visit (Lam *)=0 |
| void | start () override |
| Actual entry. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from mim::Phase | |
| static std::unique_ptr< Phase > | create (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_ |
Visits the closed Cns with a body of a scheduled World for one Target, each before the ones that call or jump to it.
Definition at line 57 of file phase.h.
References mim::Phase::annex(), mim::Phase::Phase(), target(), and mim::Phase::world().
Referenced by mim::plug::mach::RegAlloc::RegAlloc(), and mim::plug::mach::Spilling::Spilling().
|
inline |
The functions with a convention of their own, see mach::known.
Definition at line 65 of file phase.h.
Referenced by mim::plug::mach::color_fun().
|
inlineoverrideprotectedvirtual |
Actual entry.
Implements mim::Phase.
Definition at line 69 of file phase.h.
References mim::World::for_each(), mim::Lam::isa_mut_cn(), mim::plug::mach::known(), visit(), and mim::Phase::world().
Referenced by mim::plug::mach::AsmEmit::start().
|
inline |
Definition at line 61 of file phase.h.
Referenced by mim::plug::mach::color_fun(), FunPhase(), mim::plug::mach::RegAlloc::RegAlloc(), mim::plug::mach::spill_fun(), mim::plug::mach::Spilling::Spilling(), mim::plug::mach::AsmEmit::start(), and mim::plug::mach::Close::visit().
|
inline |
The arguments -X <backend>:<arg> of the Target's backend plugin.
Definition at line 63 of file phase.h.
References mim::Driver::args(), and mim::Phase::driver().
Referenced by mim::plug::mach::Live::visit().
|
protectedpure virtual |
Implemented in mim::plug::mach::AsmEmit, mim::plug::mach::Close, mim::plug::mach::Constrain, mim::plug::mach::Live, mim::plug::mach::RegAlloc, and mim::plug::mach::Spilling.
Referenced by start().