MimIR
0.1
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
normalizers.cpp
Go to the documentation of this file.
1
#include "
mim/world.h
"
2
3
#include "
mim/plug/demo/demo.h
"
4
5
namespace
mim::plug::demo
{
6
7
Ref
normalize_const
(
Ref
type,
Ref
,
Ref
arg) {
8
auto
& world = type->
world
();
9
return
world.
lit
(world.type_idx(arg), 42);
10
}
11
12
MIM_demo_NORMALIZER_IMPL
13
14
}
// namespace mim::plug::demo
mim::Def::world
World & world() const
Definition
def.cpp:415
mim::Ref
Helper class to retrieve Infer::arg if present.
Definition
def.h:86
mim::World::lit
const Lit * lit(Ref type, u64 val)
Definition
world.cpp:451
MIM_demo_NORMALIZER_IMPL
#define MIM_demo_NORMALIZER_IMPL
Definition
autogen.h:22
demo.h
mim::plug::demo
The demo Plugin
Definition
normalizers.cpp:5
mim::plug::demo::normalize_const
Ref normalize_const(Ref type, Ref, Ref arg)
Definition
normalizers.cpp:7
world.h
src
mim
plug
demo
normalizers.cpp
Generated by
1.12.0