It is very wrong if the ranges can't be infered. It's also checked in
verifyStructuredOpInterface, so we don't need the Optional return type.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D124596
[Linalg] Remove Optional from getStaticLoopRanges interface method. ClosedPublic Authored by hanchung on Apr 27 2022, 11:54 PM.
Details Summary It is very wrong if the ranges can't be infered. It's also checked in
Diff Detail
Event Timeline
This revision is now accepted and ready to land.May 3 2022, 4:20 AM Closed by commit rG919e459f1ba3: [Linalg] Remove Optional from getStaticLoopRanges interface method. (authored by hanchung). · Explain WhyMay 3 2022, 5:13 AM This revision was automatically updated to reflect the committed changes. hanchung marked an inline comment as done.
Revision Contents
Diff 425961 mlir/include/mlir/Dialect/Linalg/IR/LinalgInterfaces.td
mlir/lib/Dialect/Linalg/IR/LinalgInterfaces.cpp
mlir/lib/Dialect/Linalg/Transforms/ElementwiseOpFusion.cpp
mlir/lib/Dialect/Linalg/Transforms/SplitReduction.cpp
|
What if getShapesToLoopsMap fails? Should we maybe assert?