[Mlir-commits] [mlir] [mlir][llvm] Return failure from type converter for n-D scalable vectors (PR #65450)
Diego Caballero
llvmlistbot at llvm.org
Sun Sep 10 22:56:28 PDT 2023
================
@@ -503,9 +507,8 @@ Type LLVMTypeConverter::convertVectorType(VectorType type) const {
type.getScalableDims().back());
assert(LLVM::isCompatibleVectorType(vectorType) &&
"expected vector type compatible with the LLVM dialect");
- assert(
- (!type.isScalable() || (type.getRank() == 1)) &&
- "expected 1-D scalable vector (n-D scalable vectors are not supported)");
+ if (type.isScalable() && (type.getRank() > 1))
----------------
dcaballe wrote:
Do we handle the 0-D case gracefully here?
https://github.com/llvm/llvm-project/pull/65450
More information about the Mlir-commits
mailing list