MimIR
0.1
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
debug_print.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
DebugPrint
:
public
RWPass
<DebugPrint, Lam> {
9
public
:
10
DebugPrint
(
PassMan
&
man
,
int
level_)
11
:
RWPass
(
man
,
"debug_print"
)
12
, level(level_) {}
13
14
void
enter
()
override
;
15
16
private
:
17
int
level;
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::DebugPrint
Definition
debug_print.h:8
mim::plug::compile::DebugPrint::enter
void enter() override
Invoked just before Pass::rewriteing PassMan::curr_mut's body.
Definition
debug_print.cpp:9
mim::plug::compile::DebugPrint::DebugPrint
DebugPrint(PassMan &man, int level_)
Definition
debug_print.h:10
def.h
mim::plug::compile
The compile Plugin
Definition
compile.h:8
pass.h
include
mim
plug
compile
pass
debug_print.h
Generated by
1.12.0