omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / seed / stablehlo / vecadd.unit.om
| 1 | note Scalar functions lifted elementwise by irstablehlo: out[i] = f(a[i], b[i]). |
| 2 | fn vaddi32 a int b int to int |
| 3 | ret add a b |
| 4 | end |
| 5 | fn vaddu32 a uint b uint to uint |
| 6 | ret add a b |
| 7 | end |
| 8 | fn vaddi64 a long b long to long |
| 9 | ret add a b |
| 10 | end |
| 11 | fn madi32 a int b int c int to int |
| 12 | ret add mul a b c |
| 13 | end |
| 14 | fn biasi32 a int to int |
| 15 | ret add a -3 |
| 16 | end |