Skip to content

Commit 547a973

Browse files
committed
fix
1 parent cd7ed77 commit 547a973

File tree

3 files changed

+6
-13
lines changed

3 files changed

+6
-13
lines changed

src/exo/frontend/typecheck.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -599,9 +599,7 @@ def check_e(self, e, is_index=False):
599599
)
600600
ftyp = T.err
601601
else:
602-
ftyp = e.config.lookup(e.field)[1]
603-
604-
ftyp = e.config.lookup_type(e.field)
602+
ftyp = e.config.lookup_type(e.field)
605603

606604
return LoopIR.ReadConfig(e.config, e.field, ftyp, e.srcinfo)
607605
else:

src/exo/rewrite/new_analysis_core.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,23 +68,18 @@ def __new__(cls, op):
6868
| Not( expr arg )
6969
| USub( expr arg )
7070
| Const( object val )
71+
| ConstSym( sym name ) -- represents a named, opaque value
7172
| BinOp( binop op, expr lhs, expr rhs )
7273
| Stride( sym name, int dim )
73-
74-
75-
-- following might not be necessary at some point
76-
| Definitely( expr arg )
77-
| Maybe( expr arg )
78-
| Tuple( expr* args )
79-
| ConstSym( sym name ) -- represents a named, opaque value
80-
| Select( expr lhs, expr rhs ) -- !!uninterpreted function for array access, different from Select Below
8174
| LetStrides( sym name, expr* strides, expr body )
8275
| Select( expr cond, expr tcase, expr fcase )
8376
| ForAll( sym name, expr arg )
8477
| Exists( sym name, expr arg )
78+
| Definitely( expr arg )
79+
| Maybe( expr arg )
80+
| Tuple( expr* args )
8581
| LetTuple( sym* names, expr rhs, expr body )
8682
| Let( sym* names, expr* rhs, expr body )
87-
8883
attributes( type type, srcinfo srcinfo )
8984
} """,
9085
{

tests/test_analysis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import pytest
44

5-
from exo.rewrite.new_eff import *
5+
from exo.rewrite.analysis import *
66

77
from exo import proc, config, DRAM, SchedulingError
88
from exo.stdlib.scheduling import *

0 commit comments

Comments
 (0)