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
6namespace mim::plug::compile {
7
8class DebugPrint : public RWPass<DebugPrint, Lam> {
9public:
10 DebugPrint(PassMan& man, int level_)
11 : RWPass(man, "debug_print")
12 , level(level_) {}
13
14 void enter() override;
15
16private:
17 int level;
18};
19
20} // namespace mim::plug::compile
An optimizer that combines several optimizations in an optimal way.
Definition pass.h:107
PassMan & man()
Definition pass.h:30
Inherit from this class using CRTP, if your Pass does not need state and a fixed-point iteration.
Definition pass.h:220
void enter() override
Invoked just before Pass::rewriteing PassMan::curr_mut's body.
DebugPrint(PassMan &man, int level_)
Definition debug_print.h:10
The compile Plugin
Definition compile.h:8