std.dim currently only accepts ranked memrefs and std.rank is limited to tensors.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Time | Test | |
---|---|---|
150 ms | linux > MLIR.IR::invalid-ops.mlir | |
250 ms | windows > MLIR.IR::invalid-ops.mlir |
Event Timeline
Please fix the broken test.
mlir/include/mlir/Dialect/StandardOps/IR/Ops.td | ||
---|---|---|
1412 | Irrelevant to this commit, but I find it confusing that AnyRankedOrUnrankedMemRef is less strict than AnyMemRef. |
Fix test
mlir/include/mlir/Dialect/StandardOps/IR/Ops.td | ||
---|---|---|
1412 | I agree, I found this confusing and got it wrong. I thought about cleaning this up but the problem is that if I modify the type constraints than downstream users will see changes in their dialect and likely won't notice, as we widen the meaning of AnyMemRef. Any ideas on a good process to clean this up? |
mlir/include/mlir/Dialect/StandardOps/IR/Ops.td | ||
---|---|---|
1412 | I'd post an announcement on Discourse saying you intend to do this by <date> and give people some time to react. IMO, a week should be okay. |
Irrelevant to this commit, but I find it confusing that AnyRankedOrUnrankedMemRef is less strict than AnyMemRef.