MimIR
0.1
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
remove_perm.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
mim/def.h
>
4
5
#include <
mim/pass/pass.h
>
6
7
namespace
mim::plug::refly
{
8
9
/// Removes all `%refly.debug.perm` markers for code gen.
10
class
RemoveDbgPerm
:
public
RWPass
<RemoveDbgPerm, Lam> {
11
public
:
12
RemoveDbgPerm
(
PassMan
&
man
)
13
:
RWPass
(
man
,
"remove_dbg_perm"
) {}
14
15
const
Def
*
rewrite
(
const
Def
*)
override
;
16
};
17
18
}
// namespace mim::plug::refly
mim::Def
Base class for all Defs.
Definition
def.h:198
mim::Pass::man
PassMan & man()
Definition
pass.h:30
mim::Pass::PassMan
friend class PassMan
Definition
pass.h:101
mim::RWPass< RemoveDbgPerm, Lam >::RWPass
RWPass(PassMan &man, std::string_view name)
Definition
pass.h:222
mim::plug::refly::RemoveDbgPerm::RemoveDbgPerm
RemoveDbgPerm(PassMan &man)
Definition
remove_perm.h:12
mim::plug::refly::RemoveDbgPerm::rewrite
const Def * rewrite(const Def *) override
Definition
remove_perm.cpp:7
def.h
mim::plug::refly
The refly Plugin
Definition
remove_perm.h:7
pass.h
include
mim
plug
refly
pass
remove_perm.h
Generated by
1.13.2