Thorin 1.9.0
The Higher ORder INtermediate representation
Loading...
Searching...
No Matches
remove_perm.cpp
Go to the documentation of this file.
2
4
5namespace thorin::plug::refly {
6
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 thorin::plug::refly
World & world()
Definition pass.h:296
Helper class to retrieve Infer::arg if present.
Definition def.h:87
The refly Plugin
Definition remove_perm.h:7
auto match(Ref def)
Definition axiom.h:105