MimIR 0.1
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
tuple.h File Reference
#include "mim/def.h"
Include dependency graph for tuple.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  mim::Sigma
 A dependent tuple type. More...
 
class  mim::Tuple
 Data constructor for a Sigma. More...
 
class  mim::Arr
 A (possibly paramterized) Array. More...
 
class  mim::Pack
 A (possibly paramterized) Tuple. More...
 
class  mim::Extract
 Extracts from a Sigma or Array-typed Extract::tuple the element at position Extract::index. More...
 
class  mim::Insert
 Creates a new Tuple / Pack by inserting Insert::value at position Insert::index into Insert::tuple. More...
 

Namespaces

namespace  mim
 

Functions

Helpers to work with Tulpes/Sigmas/Arrays/Packs
bool mim::is_unit (const Def *)
 
std::string mim::tuple2str (const Def *)
 
const Defmim::flatten (const Def *def)
 Flattens a sigma/array/pack/tuple.
 
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 Defmim::unflatten (const Def *def, const Def *type)
 Applies the reverse transformation on a Pack / Tuple, given the original type.
 
const Defmim::unflatten (Defs ops, const Def *type, bool flatten_muts=true)
 Same as unflatten, but uses the operands of a flattened Pack / Tuple directly.
 
DefVec mim::merge (Defs, Defs)
 
DefVec mim::merge (const Def *def, Defs defs)
 
const Defmim::merge_sigma (const Def *def, Defs defs)
 
const Defmim::merge_tuple (const Def *def, Defs defs)
 
Ref mim::tuple_of_types (Ref t)