MimIR
0.1
MimIR is my Intermediate Representation
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) {}
13
14
void
enter
()
override
;
15
16
private
:
17
const
char
* prefix_;
18
};
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