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 / ng / tests / opt / o-mma.oir

39 lines · 855 bytes Raw Blame History
1omegair 1
2type %t32 = array f32 256
3type %t33 = ref edit shared %t32
4type %t34 = array f16 256
5type %t35 = ref edit shared %t34
6type %t36 = frag a 16 8 16 f16
7type %t37 = frag b 16 8 16 f16
8type %t38 = frag c 16 8 16 f32
9kernel @f0 flags 0 threads 32 1 1 subgroup 32 -> void
10block ^0
11%1 = shared %t33
12%2 = shared %t35
13%3 = const u64 0
14%4 = const u64 16
15%5 = const u64 256
16%6 = chk.bounds 3 %0 %2 %3 %5
17%7 = mmald %t36 0 %6 %2 %3 %4 %5
18%8 = mmald %t37 0 %6 %2 %3 %4 %5
19%9 = chk.bounds 3 %6 %1 %3 %5
20%10 = mmald %t38 0 %9 %1 %3 %4 %5
21br ^1 %9 %3
22block ^1 %11:tok %12:u64
23%13 = const u64 4
24%14 = lt bool %12 %13
25cbr %11 %14 ^2 ^3
26block ^2 %15:tok
27%16 = mma %t38 0 %7 %8 %10
28%17 = mmast 0 %15 %1 %3 %4 %5 %16
29%18 = const u64 1
30%19 = add u64 %12 %18
31br ^1 %17 %19
32block ^3 %20:tok
33ret %20
34end
35export @f1 flags 0 -> i32
36block ^0
37%1 = const i32 0
38retv %0 %1
39end