MimIR
0.1
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
remem_elim.cpp
Go to the documentation of this file.
1
#include "
mim/plug/mem/pass/remem_elim.h
"
2
3
#include "
mim/plug/mem/mem.h
"
4
5
namespace
mim::plug::mem
{
6
7
Ref
RememElim::rewrite
(Ref def) {
8
if
(
auto
remem
=
match<mem::remem>
(def))
return
remem
->arg();
9
return
def;
10
}
11
12
}
// namespace mim::plug::mem
mim::plug::mem::RememElim::rewrite
Ref rewrite(Ref) override
Definition
remem_elim.cpp:5
mem.h
mim::plug::mem
The mem Plugin
Definition
mem.h:11
mim::plug::mem::remem
remem
Definition
autogen.h:51
mim::match
auto match(Ref def)
Definition
axiom.h:112
remem_elim.h
src
mim
plug
mem
pass
remem_elim.cpp
Generated by
1.12.0