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
Event Timeline
| mlir/include/mlir/Dialect/Linalg/IR/LinalgInterfaces.td | ||
|---|---|---|
| 1011–1012 | What if getShapesToLoopsMap fails? Should we maybe assert? | |
| mlir/include/mlir/Dialect/Linalg/IR/LinalgInterfaces.td | ||
|---|---|---|
| 1011–1012 | good point, this is expected to only be called by a valid Linalg op. I added an assert and comments to it. | |
What if getShapesToLoopsMap fails? Should we maybe assert?