MimIR
0.1
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
remove_perm.cpp
Go to the documentation of this file.
1
#include "
mim/plug/refly/pass/remove_perm.h
"
2
3
#include "
mim/plug/refly/refly.h
"
4
5
namespace
mim::plug::refly
{
6
7
Ref
RemoveDbgPerm::rewrite
(
Ref
def) {
8
if
(
auto
dbg_perm =
match
(
dbg::perm
, def)) {
9
auto
[lvl, x] = dbg_perm->args<2>();
10
world
().DLOG(
"dbg_perm: {}"
, x);
11
return
x;
12
}
13
14
return
def;
15
}
16
17
}
// namespace mim::plug::refly
mim::Pass::world
World & world()
Definition
pass.h:296
mim::Ref
Helper class to retrieve Infer::arg if present.
Definition
def.h:86
mim::plug::refly::RemoveDbgPerm::rewrite
Ref rewrite(Ref) override
Definition
remove_perm.cpp:7
mim::plug::refly
The refly Plugin
Definition
remove_perm.h:6
mim::plug::refly::dbg::perm
@ perm
mim::match
auto match(Ref def)
Definition
axiom.h:112
refly.h
remove_perm.h
src
mim
plug
refly
pass
remove_perm.cpp
Generated by
1.12.0