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