This change enables using affine ops inside the body of a
linalg.indexed_generic operation.
This is in response to the discussion: https://llvm.discourse.group/t/should-linalg-indexed-generic-allow-for-affine-operations-on-its-body/2889
With the additional of AffineScope the following test started failing:
- mlir/test/Dialect/Linalg/reshape_fusion.mlir
- It fails because it swaps index for symbols on generated affine_map
- Happens only on -linalg-fusion-for-tensor-ops
In-place transpose is incompatible with "parallel" semantics.
This would be a good candidate to evolve the semantics and allow a "permutable band" in linalg but changes are more profound than this revision.
You'll need another example.