MimIR
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
autogen.h
Go to the documentation of this file.
1#pragma once
2
3#include <mim/axm.h>
4#include <mim/plugin.h>
5
6/// @namespace mim::plug::math @ref math
7namespace mim {
8namespace plug::math {
9
10static constexpr plugin_t Plugin_Id = 0x3825490000000000;
11
12/// @name %%math.F
13///@{
14enum class F : flags_t {
15};
16
17///@}
18
19/// @name %%math.f16
20///@{
21enum class f16 : flags_t {
22};
23
24///@}
25
26/// @name %%math.f32
27///@{
28enum class f32 : flags_t {
29};
30
31///@}
32
33/// @name %%math.f64
34///@{
35enum class f64 : flags_t {
36};
37
38///@}
39
40/// @name %%math.bf16
41///@{
42enum class bf16 : flags_t {
43};
44
45///@}
46
47/// @name %%math.nvtf32
48///@{
49enum class nvtf32 : flags_t {
50};
51
52///@}
53
54/// @name %%math.amdfp24
55///@{
56enum class amdfp24 : flags_t {
57};
58
59///@}
60
61/// @name %%math.pxr24
62///@{
63enum class pxr24 : flags_t {
64};
65
66///@}
67
68/// @name %%math.F16
69///@{
70enum class F16 : flags_t {
71};
72
73///@}
74
75/// @name %%math.F32
76///@{
77enum class F32 : flags_t {
78};
79
80///@}
81
82/// @name %%math.F64
83///@{
84enum class F64 : flags_t {
85};
86
87///@}
88
89/// @name %%math.BF16
90///@{
91enum class BF16 : flags_t {
92};
93
94///@}
95
96/// @name %%math.NVTF32
97///@{
98enum class NVTF32 : flags_t {
99};
100
101///@}
102
103/// @name %%math.AMDFP24
104///@{
105enum class AMDFP24 : flags_t {
106};
107
108///@}
109
110/// @name %%math.PXR24
111///@{
112enum class PXR24 : flags_t {
113};
114
115///@}
116
117/// @name %%math.arith
118///@{
119enum class arith : flags_t {
120 add = 0x3825490000000f00,
121 sub = 0x3825490000000f01,
122 mul = 0x3825490000000f02,
123 div = 0x3825490000000f03,
124 rem = 0x3825490000000f04,
125};
126
127template<arith>
128const Def* normalize_arith(const Def*, const Def*, const Def*);
129
130///@}
131
132/// @name %%math.minus
133///@{
134enum class minus : flags_t {
135};
136
137///@}
138
139/// @name %%math.extrema
140///@{
141enum class extrema : flags_t {
142 im = 0x3825490000001100,
143 fmin = 0x3825490000001100,
144 iM = 0x3825490000001101,
145 fmax = 0x3825490000001101,
146 Im = 0x3825490000001102,
147 ieee754min = 0x3825490000001102,
148 IM = 0x3825490000001103,
149 ieee754max = 0x3825490000001103,
150};
151
152template<extrema>
153const Def* normalize_extrema(const Def*, const Def*, const Def*);
154
155///@}
156
157/// @name %%math.tri
158///@{
159enum class tri : flags_t {
160 ahff = 0x3825490000001200,
161 sin = 0x3825490000001200,
162 ahfF = 0x3825490000001201,
163 cos = 0x3825490000001201,
164 ahFf = 0x3825490000001202,
165 tan = 0x3825490000001202,
166 ahFF = 0x3825490000001203,
167 aHff = 0x3825490000001204,
168 sinh = 0x3825490000001204,
169 h = 0x3825490000001204,
170 aHfF = 0x3825490000001205,
171 cosh = 0x3825490000001205,
172 aHFf = 0x3825490000001206,
173 tanh = 0x3825490000001206,
174 aHFF = 0x3825490000001207,
175 Ahff = 0x3825490000001208,
176 asin = 0x3825490000001208,
177 a = 0x3825490000001208,
178 AhfF = 0x3825490000001209,
179 acos = 0x3825490000001209,
180 AhFf = 0x382549000000120a,
181 atan = 0x382549000000120a,
182 AhFF = 0x382549000000120b,
183 AHff = 0x382549000000120c,
184 asinh = 0x382549000000120c,
185 AHfF = 0x382549000000120d,
186 acosh = 0x382549000000120d,
187 AHFf = 0x382549000000120e,
188 atanh = 0x382549000000120e,
189 AHFF = 0x382549000000120f,
190};
191
192template<tri>
193const Def* normalize_tri(const Def*, const Def*, const Def*);
194
195///@}
196
197/// @name %%math.pow
198///@{
199enum class pow : flags_t {
200};
201
202const Def* normalize_pow(const Def*, const Def*, const Def*);
203///@}
204
205/// @name %%math.rt
206///@{
207enum class rt : flags_t {
208 sq = 0x3825490000001400,
209 cb = 0x3825490000001401,
210};
211
212template<rt>
213const Def* normalize_rt(const Def*, const Def*, const Def*);
214
215///@}
216
217/// @name %%math.exp
218///@{
219enum class exp : flags_t {
220 lbb = 0x3825490000001500,
221 exp = 0x3825490000001500,
222 lbB = 0x3825490000001501,
223 exp2 = 0x3825490000001501,
224 bin = 0x3825490000001501,
225 lBb = 0x3825490000001502,
226 exp10 = 0x3825490000001502,
227 dec = 0x3825490000001502,
228 lBB = 0x3825490000001503,
229 Lbb = 0x3825490000001504,
230 log = 0x3825490000001504,
231 LbB = 0x3825490000001505,
232 log2 = 0x3825490000001505,
233 LBb = 0x3825490000001506,
234 log10 = 0x3825490000001506,
235 LBB = 0x3825490000001507,
236};
237
238template<exp>
239const Def* normalize_exp(const Def*, const Def*, const Def*);
240
241///@}
242
243/// @name %%math.er
244///@{
245enum class er : flags_t {
246 f = 0x3825490000001600,
247 fc = 0x3825490000001601,
248};
249
250template<er>
251const Def* normalize_er(const Def*, const Def*, const Def*);
252
253///@}
254
255/// @name %%math.gamma
256///@{
257enum class gamma : flags_t {
258 t = 0x3825490000001700,
259 l = 0x3825490000001701,
260};
261
262template<gamma>
263const Def* normalize_gamma(const Def*, const Def*, const Def*);
264
265///@}
266
267/// @name %%math.abs
268///@{
269enum class abs : flags_t {
270};
271
272const Def* normalize_abs(const Def*, const Def*, const Def*);
273///@}
274
275/// @name %%math.round
276///@{
277enum class round : flags_t {
278 f = 0x3825490000001900,
279 c = 0x3825490000001901,
280 r = 0x3825490000001902,
281 t = 0x3825490000001903,
282};
283
284template<round>
285const Def* normalize_round(const Def*, const Def*, const Def*);
286
287///@}
288
289/// @name %%math.cmp
290///@{
291enum class cmp : flags_t {
292 ugle = 0x3825490000001a00,
293 f = 0x3825490000001a00,
294 uglE = 0x3825490000001a01,
295 e = 0x3825490000001a01,
296 ugLe = 0x3825490000001a02,
297 l = 0x3825490000001a02,
298 ugLE = 0x3825490000001a03,
299 le = 0x3825490000001a03,
300 uGle = 0x3825490000001a04,
301 g = 0x3825490000001a04,
302 uGlE = 0x3825490000001a05,
303 ge = 0x3825490000001a05,
304 uGLe = 0x3825490000001a06,
305 ne = 0x3825490000001a06,
306 uGLE = 0x3825490000001a07,
307 o = 0x3825490000001a07,
308 Ugle = 0x3825490000001a08,
309 u = 0x3825490000001a08,
310 UglE = 0x3825490000001a09,
311 ue = 0x3825490000001a09,
312 UgLe = 0x3825490000001a0a,
313 ul = 0x3825490000001a0a,
314 UgLE = 0x3825490000001a0b,
315 ule = 0x3825490000001a0b,
316 UGle = 0x3825490000001a0c,
317 ug = 0x3825490000001a0c,
318 UGlE = 0x3825490000001a0d,
319 uge = 0x3825490000001a0d,
320 UGLe = 0x3825490000001a0e,
321 une = 0x3825490000001a0e,
322 UGLE = 0x3825490000001a0f,
323 t = 0x3825490000001a0f,
324};
325
326template<cmp>
327const Def* normalize_cmp(const Def*, const Def*, const Def*);
328
329///@}
330
331/// @name %%math.is_finite
332///@{
333enum class is_finite : flags_t {
334};
335
336///@}
337
338/// @name %%math.conv
339///@{
340enum class conv : flags_t {
341 s2f = 0x3825490000001c00,
342 u2f = 0x3825490000001c01,
343 f2s = 0x3825490000001c02,
344 f2u = 0x3825490000001c03,
345 f2f = 0x3825490000001c04,
346};
347
348template<conv>
349const Def* normalize_conv(const Def*, const Def*, const Def*);
350
351///@}
352
353/// @name %%math.slf
354///@{
355enum class slf : flags_t {
356};
357
358///@}
359
360/// @name %%math.sgn
361///@{
362enum class sgn : flags_t {
363};
364
365///@}
366
367/// @name %%math.rrt
368///@{
369enum class rrt : flags_t {
370};
371
372///@}
373
375
376#define MIM_math_NORMALIZER_IMPL \
377 void register_normalizers(Normalizers& normalizers) {\
378 normalizers[flags_t(arith::add)] = &normalize_arith<arith::add>; \
379 normalizers[flags_t(arith::sub)] = &normalize_arith<arith::sub>; \
380 normalizers[flags_t(arith::mul)] = &normalize_arith<arith::mul>; \
381 normalizers[flags_t(arith::div)] = &normalize_arith<arith::div>; \
382 normalizers[flags_t(arith::rem)] = &normalize_arith<arith::rem>; \
383 normalizers[flags_t(extrema::im)] = &normalize_extrema<extrema::im>; \
384 normalizers[flags_t(extrema::iM)] = &normalize_extrema<extrema::iM>; \
385 normalizers[flags_t(extrema::Im)] = &normalize_extrema<extrema::Im>; \
386 normalizers[flags_t(extrema::IM)] = &normalize_extrema<extrema::IM>; \
387 normalizers[flags_t(tri::ahff)] = &normalize_tri<tri::ahff>; \
388 normalizers[flags_t(tri::ahfF)] = &normalize_tri<tri::ahfF>; \
389 normalizers[flags_t(tri::ahFf)] = &normalize_tri<tri::ahFf>; \
390 normalizers[flags_t(tri::ahFF)] = &normalize_tri<tri::ahFF>; \
391 normalizers[flags_t(tri::aHff)] = &normalize_tri<tri::aHff>; \
392 normalizers[flags_t(tri::aHfF)] = &normalize_tri<tri::aHfF>; \
393 normalizers[flags_t(tri::aHFf)] = &normalize_tri<tri::aHFf>; \
394 normalizers[flags_t(tri::aHFF)] = &normalize_tri<tri::aHFF>; \
395 normalizers[flags_t(tri::Ahff)] = &normalize_tri<tri::Ahff>; \
396 normalizers[flags_t(tri::AhfF)] = &normalize_tri<tri::AhfF>; \
397 normalizers[flags_t(tri::AhFf)] = &normalize_tri<tri::AhFf>; \
398 normalizers[flags_t(tri::AhFF)] = &normalize_tri<tri::AhFF>; \
399 normalizers[flags_t(tri::AHff)] = &normalize_tri<tri::AHff>; \
400 normalizers[flags_t(tri::AHfF)] = &normalize_tri<tri::AHfF>; \
401 normalizers[flags_t(tri::AHFf)] = &normalize_tri<tri::AHFf>; \
402 normalizers[flags_t(tri::AHFF)] = &normalize_tri<tri::AHFF>; \
403 normalizers[flags_t(Annex::Base<pow>)] = &normalize_pow; \
404 normalizers[flags_t(rt::sq)] = &normalize_rt<rt::sq>; \
405 normalizers[flags_t(rt::cb)] = &normalize_rt<rt::cb>; \
406 normalizers[flags_t(exp::lbb)] = &normalize_exp<exp::lbb>; \
407 normalizers[flags_t(exp::lbB)] = &normalize_exp<exp::lbB>; \
408 normalizers[flags_t(exp::lBb)] = &normalize_exp<exp::lBb>; \
409 normalizers[flags_t(exp::lBB)] = &normalize_exp<exp::lBB>; \
410 normalizers[flags_t(exp::Lbb)] = &normalize_exp<exp::Lbb>; \
411 normalizers[flags_t(exp::LbB)] = &normalize_exp<exp::LbB>; \
412 normalizers[flags_t(exp::LBb)] = &normalize_exp<exp::LBb>; \
413 normalizers[flags_t(exp::LBB)] = &normalize_exp<exp::LBB>; \
414 normalizers[flags_t(er::f)] = &normalize_er<er::f>; \
415 normalizers[flags_t(er::fc)] = &normalize_er<er::fc>; \
416 normalizers[flags_t(gamma::t)] = &normalize_gamma<gamma::t>; \
417 normalizers[flags_t(gamma::l)] = &normalize_gamma<gamma::l>; \
418 normalizers[flags_t(Annex::Base<abs>)] = &normalize_abs; \
419 normalizers[flags_t(round::f)] = &normalize_round<round::f>; \
420 normalizers[flags_t(round::c)] = &normalize_round<round::c>; \
421 normalizers[flags_t(round::r)] = &normalize_round<round::r>; \
422 normalizers[flags_t(round::t)] = &normalize_round<round::t>; \
423 normalizers[flags_t(cmp::ugle)] = &normalize_cmp<cmp::ugle>; \
424 normalizers[flags_t(cmp::uglE)] = &normalize_cmp<cmp::uglE>; \
425 normalizers[flags_t(cmp::ugLe)] = &normalize_cmp<cmp::ugLe>; \
426 normalizers[flags_t(cmp::ugLE)] = &normalize_cmp<cmp::ugLE>; \
427 normalizers[flags_t(cmp::uGle)] = &normalize_cmp<cmp::uGle>; \
428 normalizers[flags_t(cmp::uGlE)] = &normalize_cmp<cmp::uGlE>; \
429 normalizers[flags_t(cmp::uGLe)] = &normalize_cmp<cmp::uGLe>; \
430 normalizers[flags_t(cmp::uGLE)] = &normalize_cmp<cmp::uGLE>; \
431 normalizers[flags_t(cmp::Ugle)] = &normalize_cmp<cmp::Ugle>; \
432 normalizers[flags_t(cmp::UglE)] = &normalize_cmp<cmp::UglE>; \
433 normalizers[flags_t(cmp::UgLe)] = &normalize_cmp<cmp::UgLe>; \
434 normalizers[flags_t(cmp::UgLE)] = &normalize_cmp<cmp::UgLE>; \
435 normalizers[flags_t(cmp::UGle)] = &normalize_cmp<cmp::UGle>; \
436 normalizers[flags_t(cmp::UGlE)] = &normalize_cmp<cmp::UGlE>; \
437 normalizers[flags_t(cmp::UGLe)] = &normalize_cmp<cmp::UGLe>; \
438 normalizers[flags_t(cmp::UGLE)] = &normalize_cmp<cmp::UGLE>; \
439 normalizers[flags_t(conv::s2f)] = &normalize_conv<conv::s2f>; \
440 normalizers[flags_t(conv::u2f)] = &normalize_conv<conv::u2f>; \
441 normalizers[flags_t(conv::f2s)] = &normalize_conv<conv::f2s>; \
442 normalizers[flags_t(conv::f2u)] = &normalize_conv<conv::f2u>; \
443 normalizers[flags_t(conv::f2f)] = &normalize_conv<conv::f2f>; \
444 }
445} // namespace plug::math
446
447#ifndef DOXYGEN // don't include in Doxygen documentation
448
449template<> constexpr flags_t Annex::Base<plug::math::F> = 0x3825490000000000;
450template<> constexpr size_t Annex::Num<plug::math::F> = 0;
451template<> constexpr flags_t Annex::Base<plug::math::f16> = 0x3825490000000100;
452template<> constexpr size_t Annex::Num<plug::math::f16> = 0;
453template<> constexpr flags_t Annex::Base<plug::math::f32> = 0x3825490000000200;
454template<> constexpr size_t Annex::Num<plug::math::f32> = 0;
455template<> constexpr flags_t Annex::Base<plug::math::f64> = 0x3825490000000300;
456template<> constexpr size_t Annex::Num<plug::math::f64> = 0;
457template<> constexpr flags_t Annex::Base<plug::math::bf16> = 0x3825490000000400;
458template<> constexpr size_t Annex::Num<plug::math::bf16> = 0;
459template<> constexpr flags_t Annex::Base<plug::math::nvtf32> = 0x3825490000000500;
460template<> constexpr size_t Annex::Num<plug::math::nvtf32> = 0;
461template<> constexpr flags_t Annex::Base<plug::math::amdfp24> = 0x3825490000000600;
462template<> constexpr size_t Annex::Num<plug::math::amdfp24> = 0;
463template<> constexpr flags_t Annex::Base<plug::math::pxr24> = 0x3825490000000700;
464template<> constexpr size_t Annex::Num<plug::math::pxr24> = 0;
465template<> constexpr flags_t Annex::Base<plug::math::F16> = 0x3825490000000800;
466template<> constexpr size_t Annex::Num<plug::math::F16> = 0;
467template<> constexpr flags_t Annex::Base<plug::math::F32> = 0x3825490000000900;
468template<> constexpr size_t Annex::Num<plug::math::F32> = 0;
469template<> constexpr flags_t Annex::Base<plug::math::F64> = 0x3825490000000a00;
470template<> constexpr size_t Annex::Num<plug::math::F64> = 0;
471template<> constexpr flags_t Annex::Base<plug::math::BF16> = 0x3825490000000b00;
472template<> constexpr size_t Annex::Num<plug::math::BF16> = 0;
473template<> constexpr flags_t Annex::Base<plug::math::NVTF32> = 0x3825490000000c00;
474template<> constexpr size_t Annex::Num<plug::math::NVTF32> = 0;
475template<> constexpr flags_t Annex::Base<plug::math::AMDFP24> = 0x3825490000000d00;
476template<> constexpr size_t Annex::Num<plug::math::AMDFP24> = 0;
477template<> constexpr flags_t Annex::Base<plug::math::PXR24> = 0x3825490000000e00;
478template<> constexpr size_t Annex::Num<plug::math::PXR24> = 0;
479template<> constexpr flags_t Annex::Base<plug::math::arith> = 0x3825490000000f00;
480template<> constexpr size_t Annex::Num<plug::math::arith> = 5;
481template<> constexpr flags_t Annex::Base<plug::math::minus> = 0x3825490000001000;
482template<> constexpr size_t Annex::Num<plug::math::minus> = 0;
483template<> constexpr flags_t Annex::Base<plug::math::extrema> = 0x3825490000001100;
484template<> constexpr size_t Annex::Num<plug::math::extrema> = 4;
485template<> constexpr flags_t Annex::Base<plug::math::tri> = 0x3825490000001200;
486template<> constexpr size_t Annex::Num<plug::math::tri> = 16;
487template<> constexpr flags_t Annex::Base<plug::math::pow> = 0x3825490000001300;
488template<> constexpr size_t Annex::Num<plug::math::pow> = 0;
489template<> constexpr flags_t Annex::Base<plug::math::rt> = 0x3825490000001400;
490template<> constexpr size_t Annex::Num<plug::math::rt> = 2;
491template<> constexpr flags_t Annex::Base<plug::math::exp> = 0x3825490000001500;
492template<> constexpr size_t Annex::Num<plug::math::exp> = 8;
493template<> constexpr flags_t Annex::Base<plug::math::er> = 0x3825490000001600;
494template<> constexpr size_t Annex::Num<plug::math::er> = 2;
495template<> constexpr flags_t Annex::Base<plug::math::gamma> = 0x3825490000001700;
496template<> constexpr size_t Annex::Num<plug::math::gamma> = 2;
497template<> constexpr flags_t Annex::Base<plug::math::abs> = 0x3825490000001800;
498template<> constexpr size_t Annex::Num<plug::math::abs> = 0;
499template<> constexpr flags_t Annex::Base<plug::math::round> = 0x3825490000001900;
500template<> constexpr size_t Annex::Num<plug::math::round> = 4;
501template<> constexpr flags_t Annex::Base<plug::math::cmp> = 0x3825490000001a00;
502template<> constexpr size_t Annex::Num<plug::math::cmp> = 16;
503template<> constexpr flags_t Annex::Base<plug::math::is_finite> = 0x3825490000001b00;
504template<> constexpr size_t Annex::Num<plug::math::is_finite> = 0;
505template<> constexpr flags_t Annex::Base<plug::math::conv> = 0x3825490000001c00;
506template<> constexpr size_t Annex::Num<plug::math::conv> = 5;
507template<> constexpr flags_t Annex::Base<plug::math::slf> = 0x3825490000001d00;
508template<> constexpr size_t Annex::Num<plug::math::slf> = 0;
509template<> constexpr flags_t Annex::Base<plug::math::sgn> = 0x3825490000001e00;
510template<> constexpr size_t Annex::Num<plug::math::sgn> = 0;
511template<> constexpr flags_t Annex::Base<plug::math::rrt> = 0x3825490000001f00;
512template<> constexpr size_t Annex::Num<plug::math::rrt> = 0;
513
514template<> struct Axm::IsANode<plug::math::f16> { using type = Axm; };
515template<> struct Axm::IsANode<plug::math::f32> { using type = Axm; };
516template<> struct Axm::IsANode<plug::math::f64> { using type = Axm; };
517template<> struct Axm::IsANode<plug::math::bf16> { using type = Axm; };
518template<> struct Axm::IsANode<plug::math::nvtf32> { using type = Axm; };
519template<> struct Axm::IsANode<plug::math::amdfp24> { using type = Axm; };
520template<> struct Axm::IsANode<plug::math::pxr24> { using type = Axm; };
521template<> struct Axm::IsANode<plug::math::F16> { using type = Axm; };
522template<> struct Axm::IsANode<plug::math::F32> { using type = Axm; };
523template<> struct Axm::IsANode<plug::math::F64> { using type = Axm; };
524template<> struct Axm::IsANode<plug::math::BF16> { using type = Axm; };
525template<> struct Axm::IsANode<plug::math::NVTF32> { using type = Axm; };
526template<> struct Axm::IsANode<plug::math::AMDFP24> { using type = Axm; };
527template<> struct Axm::IsANode<plug::math::PXR24> { using type = Axm; };
528template<> struct Axm::IsANode<plug::math::minus> { using type = Axm; };
529template<> struct Axm::IsANode<plug::math::slf> { using type = Axm; };
530template<> struct Axm::IsANode<plug::math::sgn> { using type = Axm; };
531template<> struct Axm::IsANode<plug::math::rrt> { using type = Axm; };
532
533#endif
534} // namespace mim
535
536#ifndef DOXYGEN // don't include in Doxygen documentation
537
538template<> struct fe::is_bit_enum<mim::plug::math::arith> : std::true_type {};
539template<> struct fe::is_bit_enum<mim::plug::math::extrema> : std::true_type {};
540template<> struct fe::is_bit_enum<mim::plug::math::tri> : std::true_type {};
541template<> struct fe::is_bit_enum<mim::plug::math::rt> : std::true_type {};
542template<> struct fe::is_bit_enum<mim::plug::math::exp> : std::true_type {};
543template<> struct fe::is_bit_enum<mim::plug::math::er> : std::true_type {};
544template<> struct fe::is_bit_enum<mim::plug::math::gamma> : std::true_type {};
545template<> struct fe::is_bit_enum<mim::plug::math::round> : std::true_type {};
546template<> struct fe::is_bit_enum<mim::plug::math::cmp> : std::true_type {};
547template<> struct fe::is_bit_enum<mim::plug::math::conv> : std::true_type {};
548
549#endif
Base class for all Defs.
Definition def.h:246
The math Plugin
Definition math.h:8
static constexpr plugin_t Plugin_Id
Definition autogen.h:10
const Def * normalize_extrema(const Def *type, const Def *c, const Def *arg)
const Def * normalize_er(const Def *type, const Def *, const Def *arg)
const Def * normalize_cmp(const Def *type, const Def *c, const Def *arg)
const Def * normalize_abs(const Def *type, const Def *, const Def *arg)
const Def * normalize_gamma(const Def *type, const Def *, const Def *arg)
void register_normalizers(Normalizers &normalizers)
const Def * normalize_arith(const Def *type, const Def *c, const Def *arg)
const Def * normalize_round(const Def *type, const Def *, const Def *arg)
const Def * normalize_tri(const Def *type, const Def *, const Def *arg)
const Def * normalize_exp(const Def *type, const Def *, const Def *arg)
const Def * normalize_rt(const Def *type, const Def *, const Def *arg)
const Def * normalize_pow(const Def *type, const Def *, const Def *arg)
const Def * normalize_conv(const Def *dst_t, const Def *, const Def *x)
Definition ast.h:14
u64 flags_t
Definition types.h:39
float rem(float a, float b)
Definition types.h:87
absl::flat_hash_map< flags_t, NormalizeFn > Normalizers
Definition plugin.h:22
u64 plugin_t
Definition types.h:40
@ Axm
Definition def.h:109
static constexpr size_t Num
Number of Axm::subtags.
Definition plugin.h:147
static constexpr flags_t Base
Definition plugin.h:148