163 :
Def(Node,
type, {inner_type}, 0) {}
Bound(node_t node, const Def *type, Defs ops)
Constructor for an immutable Bound.
Bound(node_t node, const Def *type, size_t size)
Constructor for a mutable Bound.
const Def * get(const Def *type) const
size_t find(const Def *type) const
const Def * op(size_t i) const
const Def * type() const
Yields the raw type of this Def, i.e. maybe nullptr.
Def * set(size_t i, const Def *def)
Successively set from left to right.
Common base for TExtremum.
Ext(node_t node, const Def *type)
Picks the aspect of a Meet [value](Pick::value) by its [type](Def::type).
const Def * value() const
Helper class to retrieve Infer::arg if present.
A singleton wraps a type into a higher order type.
const Def * inhabitant() const
This is a thin wrapper for std::span<T, N> with the following additional features:
Specific Bound depending on Up.
Ref rebuild_(World &, Ref, Defs) const override
static constexpr auto Node
TBound * stub_(World &, Ref) override
Extremum. Either Top (Up) or Bottom.
TExt * stub_(World &, Ref) override
static constexpr auto Node
Ref rebuild_(World &, Ref, Defs) const override
Test whether Test::value currently holds type Test::probe:
const Def * probe() const
const Def * value() const
const Def * match() const
const Def * clash() const
const Def * value() const
The World represents the whole program and manages creation of Thorin nodes (Defs).
#define THORIN_SETTERS(T)
#define THORIN_DEF_MIXIN(T)