[Mlir-commits] [mlir] [mlir][vector] Fix 0-d vector transfer mask inference (PR #116526)
Diego Caballero
llvmlistbot at llvm.org
Tue Nov 19 17:31:36 PST 2024
dcaballe wrote:
Hey Kunwar,
Your feedback is definitely welcome. Currently `vector.mask`, as some other ops, does not support 0-D vectors at ODS level. You can take a look at the differences between:
```
// Vector types.
class VectorOf<list<Type> allowedTypes> :
ShapedContainerType<allowedTypes, IsVectorTypePred, "vector",
"::mlir::VectorType">;
// Temporary vector type clone that allows gradual transition to 0-D vectors.
// TODO: Remove this when all ops support 0-D vectors.
class VectorOfAnyRankOf<list<Type> allowedTypes> :
ShapedContainerType<allowedTypes, IsVectorOfAnyRankTypePred, "vector",
"::mlir::VectorType">;
```
0-D vector support has been a major source of bugs and trouble in general, even for simple ops, so I don't think we can just enable 0-D vectors here and move on. Honestly, I'm really concerned about the 0-D vector situation and the instability that has been bringing since its introduction. For that reason, as I mentioned in your PR, I was thinking about sending an RFC to propose its removal. It would be good to know if people have any concerns about that beforehand.
https://github.com/llvm/llvm-project/pull/116526
More information about the Mlir-commits
mailing list