Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat[next]: domain inference for let, make_tuple, tuple_get, cond (#1591
) Infers the minimal domain of (nested) `let`, `make_tuple`, `tuple_get`, `cond` and other builtins as an extension to PR #1568 - New functions `infer_let`, `infer_make_tuple`, `infer_tuple_get`, `infer_cond` in `gt4py.next.iterator.transforms.infer_domain` - New function `infer_expr` in gt4py.next.iterator.transforms.infer_domain which calls the appropriate of the above (or `infer_as_fieldop` and `infer_program`) - Several new tests in test_infer_domain.py to test functionality Note: Temporary handling was only present until commit fc4846f and has been removed in commit e8e679d to reduce unneeded complexity. This pass will be executed before temporary extraction, hence there exist valid `domain`s in all program calls, i.e. all `SetAt` do have a domain (not `AUTO_DOMAIN`) that doesn't need to be inferred. --------- Co-authored-by: Till Ehrengruber <[email protected]>
- Loading branch information