MimIR 0.1
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
internal_cleanup.cpp
Go to the documentation of this file.
2
3#include <iostream>
4
5#include <mim/lam.h>
6
7namespace mim::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 mim::plug::compile
void make_internal()
Definition def.cpp:509
Sym sym() const
Definition def.h:468
A function.
Definition lam.h:103
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:8