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
4
5namespace mim::plug::demo {
6
8 auto& world = type->world();
9 return world.lit(world.type_idx(arg), 42);
10}
11
13
14} // namespace mim::plug::demo
World & world() const
Definition def.cpp:415
Helper class to retrieve Infer::arg if present.
Definition def.h:86
const Lit * lit(Ref type, u64 val)
Definition world.cpp:451
#define MIM_demo_NORMALIZER_IMPL
Definition autogen.h:22
The demo Plugin
Ref normalize_const(Ref type, Ref, Ref arg)