Repository navigation
feat: add opt-in affine loop lowering - #1186
Conversation
|
Extended affine eligibility to dynamic upper bounds with a positive constant step. The fixture now covers static and dynamic bounds. The affine path remains opt-in and the default scf.for path remains unchanged. |
|
Added a native MLIR command golden for FLOWC_MLIR_AFFINE=1. It checks static and dynamic affine bounds, while the existing default path remains covered separately. |
|
Extended the opt-in path to eligible parallel loops. They emit affine.parallel with constant positive steps when the body has no reductions, loop-carried values, or control-flow exits. The affine golden now covers affine.for and affine.parallel. |
|
Added guarded affine tiling with FLOWC_MLIR_TILE=N. Static zero-based divisible loops emit nested affine.for loops with the original induction value reconstructed from tile and intra-tile indices. Partial tiles and carried/control-flow loops keep the existing lowering. Added a tile golden. |
|
Extended tiling to dynamic and partial extents with affine.min for the final tile. The tiled golden now covers static, dynamic, and partial-loop cases. |
98baf62 to
7aef92c
Compare
7aef92c to
6b46574
Compare
Implements the first #665 slice in the native MLIR generator.
Verified with the affine and default lowering checks, focused MLIR goldens, bootstrap fixed-point verification, and three-generation self-hosting.
Refs #665.