MimIR
0.1
MimIR is my Intermediate Representation
Toggle main menu visibility
Main Page
Documentation
Mim Command-Line Reference
Mim Language Reference
Coding & Debugging
Developer Guide
Passes
Plugins
affine
autodiff
clos
compile
core
demo
direct
math
matrix
mem
opt
refly
regex
tuple
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
Variables
Typedefs
a
b
d
f
g
j
l
m
n
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
i
j
l
m
n
p
q
r
s
t
v
w
z
Concepts
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
~
Variables
a
b
c
d
f
g
i
l
m
n
o
p
r
s
t
w
Typedefs
Enumerations
Enumerator
Related Symbols
a
b
c
f
i
l
n
o
p
s
w
Files
File List
File Members
All
a
c
d
e
g
h
i
m
r
v
w
Functions
Typedefs
Macros
a
c
d
e
g
h
i
m
v
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Concepts
Loading...
Searching...
No Matches
internal_cleanup.cpp
Go to the documentation of this file.
1
#include "
mim/plug/compile/pass/internal_cleanup.h
"
2
3
#include <iostream>
4
5
#include <
mim/lam.h
>
6
7
namespace
mim::plug::compile
{
8
9
void
InternalCleanup::enter
() {
10
Lam
* lam =
curr_mut
();
11
if
(lam->
sym
().view().starts_with(prefix_)) {
12
lam->
make_internal
();
13
world
().DLOG(
"internalized {}"
, lam);
14
}
15
}
9
void
InternalCleanup::enter
() {
…
}
16
17
}
// namespace mim::plug::compile
mim::Def::make_internal
void make_internal()
Definition
def.cpp:493
mim::Def::sym
Sym sym() const
Definition
def.h:451
mim::Lam
A function.
Definition
lam.h:106
mim::Pass::world
World & world()
Definition
pass.h:296
mim::RWPass< InternalCleanup, Lam >::curr_mut
Lam * curr_mut() const
Definition
pass.h:232
mim::plug::compile::InternalCleanup::enter
void enter() override
Invoked just before Pass::rewriteing PassMan::curr_mut's body.
Definition
internal_cleanup.cpp:9
internal_cleanup.h
lam.h
mim::plug::compile
The compile Plugin
Definition
compile.h:9
src
mim
plug
compile
pass
internal_cleanup.cpp
Generated by
1.13.2