MimIR 0.1
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
normalizers.cpp File Reference
#include <mim/normalize.h>
#include "mim/plug/math/math.h"
Include dependency graph for normalizers.cpp:

Go to the source code of this file.

Namespaces

namespace  mim
 
namespace  mim::plug
 
namespace  mim::plug::math
 The math Plugin
 

Macros

#define CODE(i)
 
#define CODE(i)
 
#define CODE(i)
 
#define M(S, D)
 

Functions

%math.arith
template<arith id>
Ref mim::plug::math::normalize_arith (Ref type, Ref c, Ref arg)
 
%math.extrema
template<extrema id>
Ref mim::plug::math::normalize_extrema (Ref type, Ref c, Ref arg)
 
%math.tri
template<tri id>
Ref mim::plug::math::normalize_tri (Ref type, Ref c, Ref arg)
 
%math.pow
Ref mim::plug::math::normalize_pow (Ref type, Ref c, Ref arg)
 
%math.rt
template<rt id>
Ref mim::plug::math::normalize_rt (Ref type, Ref c, Ref arg)
 
%math.exp
template<exp id>
Ref mim::plug::math::normalize_exp (Ref type, Ref c, Ref arg)
 
%math.er
template<er id>
Ref mim::plug::math::normalize_er (Ref type, Ref c, Ref arg)
 
%math.gamma
template<gamma id>
Ref mim::plug::math::normalize_gamma (Ref type, Ref c, Ref arg)
 
%math.cmp
template<cmp id>
Ref mim::plug::math::normalize_cmp (Ref type, Ref c, Ref arg)
 
%math.conv
template<conv id>
Ref mim::plug::math::normalize_conv (Ref dst_t, Ref c, Ref x)
 
%math.abs
Ref mim::plug::math::normalize_abs (Ref type, Ref c, Ref arg)
 
%math.round
template<round id>
Ref mim::plug::math::normalize_round (Ref type, Ref c, Ref arg)
 

Macro Definition Documentation

◆ CODE [1/3]

#define CODE ( i)
Value:
case i: res = fold<Id, i>(la->get()); break;

◆ CODE [2/3]

#define CODE ( i)
Value:
case i: res = fold<Id, id, i>(*la); break;

◆ CODE [3/3]

#define CODE ( i)
Value:
case i: res = fold<Id, id, i>(*la, *lb); break;

◆ M

#define M ( S,
D )
Value:
else if (S == *sw && D == *dw) { \
if constexpr (S >= min_s && D >= min_d) \
res = fold<conv, id, S, D>(*l); \
else \
goto out; \
}