Fixing a bug where using a zero-rank shaped type operand to
linalg.generic ops hit an unrelated assert. This also meant that
lowering the operation to loops was not supported. Adding roundtrip
tests and lowering to loops test for zero-rank shaped type operand
with fixes to make the test pass.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Time | Test | |
---|---|---|
80 ms | MLIR.Dialect/Linalg::Unknown Unit Message ("") |
Event Timeline
Comment Actions
Just few formatting nits while going through the examples.
mlir/test/Dialect/Linalg/loops.mlir | ||
---|---|---|
365 | Add a space after comma | |
376 | Remove the space right after %arg0. | |
379 | s/%b :/ %b: | |
mlir/test/Dialect/Linalg/roundtrip.mlir | ||
350 | Add a space after comma. | |
361 | Remove the space between "%arg0" and ":". | |
361 | There are two spaces after "->", remove one. |
mlir/lib/Dialect/Linalg/Transforms/LinalgToLoops.cpp | ||
---|---|---|
346–351 | This part should also be updated with Value input = indexedGenericOp.getInput(i); if (!input.getType().cast<ShapedType>().getRank()) { indexedValues[nLoops + i] = std_load(input); } else { ValueHandleArray indexing(makeCanonicalAffineApplies( b, loc, indexedGenericOp.getInputIndexingMap(i), allIvs)); indexedValues[nLoops + i] = std_load(input, indexing); } } |
nit: Wrap this in {} to match the else.