George Necula 5cbc38d4f5 [shape_poly] Keep track of whether a lowering contains shape polymorphism
Previously, we kept the `dim_vars` in the `mlir.ModuleContext`. Now we
replace that with a mutable `ShapePolyLoweringState` that also tracks
whether we encounter shape polymorphism anywhere in the lowering.
For this purpose, we also add `shape_poly_state` to the lowering.compile_args.

We need to keep track of whether a module contains dimension variables
because such modules need shape refinement before they can be converted
to MHLO and compiled. For now, we just test that we set the
`Exported.module_uses_dim_vars` correctly.
2023-05-31 11:40:50 +03:00
..
2023-05-23 17:33:50 -07:00
2023-05-23 14:00:34 -07:00
2023-04-22 11:28:03 -07:00
2023-05-22 11:35:10 -07:00