You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: arrayjit/lib/lowering_and_inlining.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,22 +14,22 @@ type t =
14
14
| Seq of t * t
15
15
| For_loop of { index : Indexing.symbol; from_ : int; to_ : int; body : t; trace_it : bool }
16
16
| Zero_out of Tnode.t
17
-
| Set of { array : Tnode.t; idcs : Indexing.axis_index array; llv : float_t; mutable debug : string }
18
-
| Set_local of scope_id * float_t
17
+
| Set of { array : Tnode.t; idcs : Indexing.axis_index array; llv : scalar_t; mutable debug : string }
18
+
| Set_local of scope_id * scalar_t
19
19
20
-
and float_t =
20
+
and scalar_t =
21
21
| Local_scope of { id : scope_id; body : t; orig_indices : Indexing.axis_index array }
22
22
| Get_local of scope_id
23
23
| Access of dedicated_access * Indexing.axis_index array option
24
24
| Get of Tnode.t * Indexing.axis_index array
25
-
| Ternop of Ops.ternop * float_t * float_t * float_t
26
-
| Binop of Ops.binop * float_t * float_t
27
-
| Unop of Ops.unop * float_t
25
+
| Ternop of Ops.ternop * scalar_t * scalar_t * scalar_t
26
+
| Binop of Ops.binop * scalar_t * scalar_t
27
+
| Unop of Ops.unop * scalar_t
28
28
| Constant of float
29
29
| Embed_index of Indexing.axis_index
30
30
```
31
31
32
-
`t` represents code/statements while `float_t` represents scalar expressions. The `trace_it` flag in `For_loop` indicates whether the loop should be traced for optimization (its initial segment will be unrolled for analysis).
32
+
`t` represents code/statements while `scalar_t` represents scalar expressions. The `trace_it` flag in `For_loop` indicates whether the loop should be traced for optimization (its initial segment will be unrolled for analysis).
0 commit comments