interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / seed / stablehlo / vecadd.unit.om

16 lines · 323 bytes Raw Blame History
1note Scalar functions lifted elementwise by irstablehlo: out[i] = f(a[i], b[i]).
2fn vaddi32 a int b int to int
3ret add a b
4end
5fn vaddu32 a uint b uint to uint
6ret add a b
7end
8fn vaddi64 a long b long to long
9ret add a b
10end
11fn madi32 a int b int c int to int
12ret add mul a b c
13end
14fn biasi32 a int to int
15ret add a -3
16end