Uh oh!
There was an error while loading. Please reload this page.
[Relay] Mutual Recursion Support - #5881
Conversation
jroesch
commented
Aug 12, 2020
Sorry I meant to review this a long time ago and just got sidetracked by lots of things. I'm currently working on refactoring the type inferencer to use the new diagnostics. I should have a branch out by next week, could you potentially rebase on top of that and land these tests? |
ada67f2 to
348573eCompareready for review cc: @MarisaKirisame@jroesch@slyubomirsky@joshpoll@tqchen@wweic@weberlo |
wweic
commented
Aug 23, 2020
I'll try to take a pass today |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
MarisaKirisame
commented
Aug 24, 2020
Please rebase. |
6784694 to
4dc95fcCompare
MarisaKirisame
left a comment
There was a problem hiding this comment.
please remove the change to type relation, and fix/remove the test.
jroesch
commented
Aug 25, 2020
Can we hold off on merging this until #6274 lands? This heavily changes the way the type inferencer works. |
MarisaKirisame
commented
Aug 25, 2020
@hypercubestart sorry to put this on hold, but IMHO 6274 is an essential PR and we should focus on it with stronger priority. everything is good and we will merge this after 6274. |
| var = _ty.GlobalTypeVar(var) | ||
| _ffi_api.Module_AddDef(self, var, val, update) | ||
| def add_unchecked(self, var, val): |
| """ | ||
| return _ffi_api.InferType() | ||
| def InferTypeAll(): |
| TypeSolver(const GlobalVar& current_func, const IRModule& _mod, ErrorReporter* err_reporter); | ||
| ~TypeSolver(); | ||
| void SetCurrentFunc(GlobalVar current_func) { this->current_func = current_func; } |
| } | ||
| void Solve(); | ||
| Expr ResolveType(Expr expr); |
Working on adding mutual recursion to as a relay pass.
cc for help and advice: @MarisaKirisame@jroesch