Commit 016d895
committed
Consolidate elementwise operators into a descriptor table
Every elementwise binary operator (+ - * / ^ %% %/%, comparisons,
& && | ||) becomes a row in binop_table, compiled by one compile_binop
that applies a closed set of mode rules (promote / double / compare /
logical) and resolves shapes through resolve_elementwise(), the renamed
maybe_reshape_vector_matrix() with the conformability policy applied via
guard_conformable_dims() -- now the single guard emitter shared with the
BLAS lowerings and ifelse() (whose private axis verdict and inline .or.
guard are deleted). check_conformable() was dims_match() in list form;
both call sites now say so. The real-domain floor spelling shared by
floor() and double %/% is factored into real_floor_expr().
Behavior-neutral: zero snapshot churn, full QUICKR_FULL_GRID=1 pass,
and byte-identical generated Fortran over a 20-program differential
battery against the previous commit.1 parent 109160b commit 016d895
8 files changed
Lines changed: 331 additions & 556 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | 11 | | |
33 | 12 | | |
34 | 13 | | |
35 | | - | |
| 14 | + | |
| 15 | + | |
36 | 16 | | |
37 | 17 | | |
38 | 18 | | |
| |||
41 | 21 | | |
42 | 22 | | |
43 | 23 | | |
44 | | - | |
45 | 24 | | |
46 | | - | |
| 25 | + | |
| 26 | + | |
47 | 27 | | |
48 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
49 | 35 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | 36 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | 37 | | |
78 | 38 | | |
79 | 39 | | |
| |||
0 commit comments