Original revision: https://reviews.llvm.org/D140622
Revert: https://reviews.llvm.org/rG5759d9467cbec1440be499448bf086db384fd1d2
Paths
| Differential D141259
Reupoading: Apply shortened printing/parsing form to linalg.reduce. ClosedPublic Authored by khasanovaa on Jan 9 2023, 12:23 AM.
Details Summary Original revision: https://reviews.llvm.org/D140622 Revert: https://reviews.llvm.org/rG5759d9467cbec1440be499448bf086db384fd1d2
Diff Detail
Event Timeline
This revision is now accepted and ready to land.Jan 9 2023, 2:01 AM Closed by commit rGef545ef62a83: [mlir][linalg] Reuploading: Apply shortened printing/parsing form to linalg. (authored by khasanovaa). · Explain WhyJan 9 2023, 4:33 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 487342 mlir/include/mlir/Dialect/Linalg/IR/LinalgStructuredOps.td
mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
mlir/test/Dialect/Linalg/one-shot-bufferize.mlir
mlir/test/Dialect/Linalg/roundtrip.mlir
|
To avoid the index-based loop, you can use a range-based loop over something like llvm::zip(payload.getOperands(), body->getArguments().drop_front()). Or use llvm::all_of_zip.