Thorin 1.9.0
The Higher ORder INtermediate representation
Loading...
Searching...
No Matches
internal_cleanup.cpp
Go to the documentation of this file.
2
3#include <iostream>
4
5#include <thorin/lam.h>
6
7namespace thorin::plug::compile {
8
10 Lam* lam = curr_mut();
11 if (lam->sym().view().starts_with(prefix_)) {
12 lam->make_internal();
13 world().DLOG("internalized {}", lam);
14 }
15}
16
17} // namespace thorin::plug::compile
void make_internal()
Definition def.cpp:522
Sym sym() const
Definition def.h:470
A function.
Definition lam.h:97
World & world()
Definition pass.h:296
void enter() override
Invoked just before Pass::rewriteing PassMan::curr_mut's body.
The compile Plugin
Definition compile.h:9