MimIR 0.1
MimIR is my Intermediate Representation
|
Go to the source code of this file.
Namespaces | |
namespace | mim |
Functions | |
Helpers to work with Tulpes/Sigmas/Arrays/Packs | |
bool | mim::is_unit (const Def *) |
std::string | mim::tuple2str (const Def *) |
size_t | mim::flatten (DefVec &ops, const Def *def, bool flatten_sigmas=true) |
Same as unflatten, but uses the operands of a flattened Pack / Tuple directly. | |
const Def * | mim::flatten (const Def *def) |
Flattens a sigma/array/pack/tuple. | |
const Def * | mim::unflatten (Defs ops, const Def *type, bool flatten_muts=true) |
Same as unflatten, but uses the operands of a flattened Pack / Tuple directly. | |
const Def * | mim::unflatten (const Def *def, const Def *type) |
Applies the reverse transformation on a Pack / Tuple, given the original type. | |
DefVec | mim::merge (const Def *def, Defs defs) |
DefVec | mim::merge (Defs, Defs) |
const Def * | mim::merge_sigma (const Def *def, Defs defs) |
const Def * | mim::merge_tuple (const Def *def, Defs defs) |
Ref | mim::tuple_of_types (Ref t) |