Added missing strides check to verification method of rank reducing subview
which enforces strides specification for the resulting type.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Thanks for fixing this @limo1996 , let's please improve the error messages and add invalid tests for each covered case.
mlir/lib/Dialect/StandardOps/IR/Ops.cpp | ||
---|---|---|
2829 | This function has too many failure cases that are captured by "return false". | |
mlir/test/IR/invalid-ops.mlir | ||
1025 | This does not fail because of the stride but because of something else. |
Looks nice, thanks @limo1996
mlir/lib/Dialect/StandardOps/IR/Ops.cpp | ||
---|---|---|
2827 | s/OK/Success for consistency with rest of the codebase? | |
2920 | I'd just rewrite as: expected result type ... (mismatching result sizes) here and below. /tmp/tmp.mlir:29:8: error: expected SSA operand ^bb42 (i32): // expected-error {{expected SSA operand}} ^ |
s/OK/Success for consistency with rest of the codebase?