We now support index casting for tensor<index> to tensor<int>. This
better supports compatibility with the Shape dialect.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Dialect/StandardOps/IR/Ops.cpp | ||
---|---|---|
1772 | Is this intended to support mismatch static/dynamic dimensions? |
mlir/lib/Dialect/StandardOps/IR/Ops.cpp | ||
---|---|---|
1782 | Turns out its unneeded as index_cast does not allow noop casts. | |
mlir/test/Dialect/Standard/ops.mlir | ||
6 | My goal is to match the invalid tests and have correctly parsed tests pass through (both with and without tensors). Is there a better way to include examples of valid index_casts? |
Can you revise the commit description if you aren't updating the folder?
mlir/test/Dialect/Standard/ops.mlir | ||
---|---|---|
6 | I meant the last RUN line. Parsing the generic input seems like it is testing the core parser and nothing related to the standard dialect that isn't tested by the other two tests. |
Removed unneeded parts othe Standard/ops.mlir checks.
mlir/lib/Dialect/StandardOps/IR/Ops.cpp | ||
---|---|---|
1772 | I wasn't planning to. It the input/output shapes should match and it would be strange to have a incorrectly shape determined side of the case. |
Thanks!
mlir/test/Dialect/Standard/ops.mlir | ||
---|---|---|
2 | What does split input do here given fed back into mlir-opt? (and also no file splits in here) |
mlir/test/Dialect/Standard/ops.mlir | ||
---|---|---|
2 | Extra from copy-paste of another test. |
Is this intended to support mismatch static/dynamic dimensions?