Thorin 1.9.0
The Higher ORder INtermediate representation
Loading...
Searching...
No Matches
normalizers.cpp
Go to the documentation of this file.
2
3namespace thorin::plug::clos {
4
5template<attr o> Ref normalize_clos(Ref type, Ref callee, Ref arg) {
6 auto& w = type->world();
7 return o == attr::bot ? arg : w.raw_app(type, callee, arg);
8}
9
11
12} // namespace thorin::plug::clos
World & world() const
Definition def.cpp:421
Helper class to retrieve Infer::arg if present.
Definition def.h:87
#define THORIN_clos_NORMALIZER_IMPL
Definition autogen.h:155
The clos Plugin
Definition clos.h:7
Ref normalize_clos(Ref type, Ref callee, Ref arg)