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
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
l
m
n
p
q
r
s
t
v
w
z
Enumerator
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
e
f
g
i
l
m
n
o
p
r
s
t
w
Typedefs
Enumerations
Enumerator
Related Symbols
a
b
c
d
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
▼
MimIR
►
Introduction
►
Documentation
►
Plugins
►
Namespaces
►
Concepts
►
Classes
▼
Files
▼
File List
►
build
docs
▼
include
►
automaton
▼
mim
►
ast
►
be
►
pass
►
phase
▼
plug
►
affine
►
autodiff
►
clos
▼
compile
▼
pass
►
debug_print.h
►
internal_cleanup.h
►
compile.h
►
core
►
demo
►
direct
►
math
►
matrix
►
mem
►
opt
►
refly
►
regex
►
util
►
axiom.h
►
check.h
►
def.h
►
driver.h
►
flags.h
►
lam.h
►
lattice.h
►
nest.h
►
normalize.h
►
plugin.h
►
rewrite.h
►
schedule.h
►
tuple.h
►
world.h
►
src
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Concepts
Loading...
Searching...
No Matches
internal_cleanup.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
mim/def.h
>
4
#include <
mim/pass/pass.h
>
5
6
namespace
mim::plug::compile
{
7
8
class
InternalCleanup
:
public
RWPass
<InternalCleanup, Lam> {
9
public
:
10
InternalCleanup
(
PassMan
&
man
,
const
char
* prefix =
"internal_"
)
11
:
RWPass
(
man
,
"internal_cleanup"
)
12
, prefix_(prefix) {}
10
InternalCleanup
(
PassMan
&
man
,
const
char
* prefix =
"internal_"
) {
…
}
13
14
void
enter
()
override
;
15
16
private
:
17
const
char
* prefix_;
18
};
8
class
InternalCleanup
:
public
RWPass
<InternalCleanup, Lam> {
…
};
19
20
}
// namespace mim::plug::compile
mim::PassMan
An optimizer that combines several optimizations in an optimal way.
Definition
pass.h:107
mim::Pass::man
PassMan & man()
Definition
pass.h:30
mim::RWPass
Inherit from this class using CRTP, if your Pass does not need state and a fixed-point iteration.
Definition
pass.h:220
mim::plug::compile::InternalCleanup
Definition
internal_cleanup.h:8
mim::plug::compile::InternalCleanup::InternalCleanup
InternalCleanup(PassMan &man, const char *prefix="internal_")
Definition
internal_cleanup.h:10
mim::plug::compile::InternalCleanup::enter
void enter() override
Invoked just before Pass::rewriteing PassMan::curr_mut's body.
Definition
internal_cleanup.cpp:9
def.h
mim::plug::compile
The compile Plugin
Definition
compile.h:8
pass.h
include
mim
plug
compile
pass
internal_cleanup.h
Generated by
1.12.0