File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -34,17 +34,18 @@ def unsafe_run(self, mt: ir.Method) -> RewriteResult:
3434 )
3535 ).rewrite (mt .code )
3636
37+ # kernel should be entirely in squin dialect now
38+ mt .dialects = squin .kernel
39+
3740 # the rest is taken from the squin kernel
3841
39- rewrite_result = Fold (dialects = squin . kernel ).fixpoint (mt )
42+ rewrite_result = Fold (dialects = mt . dialects ).fixpoint (mt )
4043 rewrite_result = (
41- TypeInfer (dialects = squin . kernel ).unsafe_run (mt ).join (rewrite_result )
44+ TypeInfer (dialects = mt . dialects ).unsafe_run (mt ).join (rewrite_result )
4245 )
4346 rewrite_result = (
44- IListDesugar (dialects = squin . kernel ).unsafe_run (mt ).join (rewrite_result )
47+ IListDesugar (dialects = mt . dialects ).unsafe_run (mt ).join (rewrite_result )
4548 )
46- TypeInfer (dialects = squin .kernel ).unsafe_run (mt ).join (rewrite_result )
47-
48- mt .dialects = squin .kernel
49+ TypeInfer (dialects = mt .dialects ).unsafe_run (mt ).join (rewrite_result )
4950
5051 return rewrite_result
You can’t perform that action at this time.
0 commit comments