Public Member Functions | |
| Emit (World &world, flags_t annex) | |
| void | start () override |
| Actual entry. | |
| 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 () |
| Log & | log () const |
| std::string_view | name () const |
| flags_t | annex () const |
| const 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 Profiler counter key of the current run; no-op unless profiling is enabled. | |
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_ |
Definition at line 152 of file ll_nvptx.cpp.
Definition at line 154 of file ll_nvptx.cpp.
References mim::Phase::annex(), mim::Phase::Phase(), and mim::Phase::world().
|
inlineoverridevirtual |
Actual entry.
Implements mim::Phase.
Definition at line 157 of file ll_nvptx.cpp.
References mim::Phase::annex(), mim::Phase::args(), mim::Phase::create(), mim::Phase::driver(), mim::plug::ll::Emitter::embed, mim::plug::ll_nvptx::emit_device(), mim::plug::ll_nvptx::emit_host(), mim::plug::ll::Emitter::ext, mim::Phase::name(), mim::World::name(), mim::Phase::run(), mim::plug::ll_nvptx::DeviceEmitFlags::uses_libdevice, WLOG, and mim::Phase::world().