MimIR 0.1
MimIR is my Intermediate Representation
|
This pass lowers typed closures to untyped closures. More...
#include <mim/plug/clos/phase/lower_typed_clos.h>
Public Member Functions | |
LowerTypedClos (World &world) | |
void | start () override |
Actual entry. | |
Public Member Functions inherited from mim::Phase | |
Phase (World &world, std::string_view name, bool dirty) | |
virtual | ~Phase ()=default |
World & | world () |
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 mim::Phase | |
template<class P , class... Args> | |
static void | run (Args &&... args) |
Runs a single Phase. | |
Protected Member Functions inherited from mim::Phase | |
Protected Attributes inherited from mim::Phase | |
World & | world_ |
std::string | name_ |
bool | dirty_ |
This pass lowers typed closures to untyped closures.
For details on typed closures, see ClosConv. In general, untyped closure have the form (pointer-to-environment, code)
with the following exceptions:
⊥
as a dummy continuation. Therefore Clos2SJLJ should have taken place prior to this pass.This pass will heap-allocate ClosKind::esc closures and stack-allocate everything else. These annotations are introduced by LowerTypedClosPrep.
Definition at line 28 of file lower_typed_clos.h.
|
inline |
Definition at line 30 of file lower_typed_clos.h.
|
overridevirtual |
Actual entry.
Implements mim::Phase.
Definition at line 17 of file lower_typed_clos.cpp.
References mim::World::bot(), and mim::Phase::world().