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
6namespace mim::plug::compile {
7
8class InternalCleanup : public RWPass<InternalCleanup, Lam> {
9public:
10 InternalCleanup(PassMan& man, const char* prefix = "internal_")
11 : RWPass(man, "internal_cleanup")
12 , prefix_(prefix) {}
13
14 void enter() override;
15
16private:
17 const char* prefix_;
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
InternalCleanup(PassMan &man, const char *prefix="internal_")
void enter() override
Invoked just before Pass::rewriteing PassMan::curr_mut's body.
The compile Plugin
Definition compile.h:8