Thorin
1.9.0
The Higher ORder INtermediate representation
Loading...
Searching...
No Matches
normalizers.cpp
Go to the documentation of this file.
1
#include "
thorin/world.h
"
2
3
#include "
thorin/plug/demo/demo.h
"
4
5
namespace
thorin::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
THORIN_demo_NORMALIZER_IMPL
13
14
}
// namespace thorin::plug::demo
thorin::Def::world
World & world() const
Definition
def.cpp:421
thorin::Ref
Helper class to retrieve Infer::arg if present.
Definition
def.h:87
thorin::World::lit
const Lit * lit(Ref type, u64 val)
Definition
world.cpp:435
THORIN_demo_NORMALIZER_IMPL
#define THORIN_demo_NORMALIZER_IMPL
Definition
autogen.h:26
demo.h
thorin::plug::demo
The demo Plugin
Definition
normalizers.cpp:5
thorin::plug::demo::normalize_const
Ref normalize_const(Ref type, Ref, Ref arg)
Definition
normalizers.cpp:7
world.h
src
thorin
plug
demo
normalizers.cpp
Generated by
1.9.8