[Mlir-commits] [mlir] [mlir][vector] Reject a 0-d operand in the outerproduct parser (PR #219917)
Andrzej WarzyĆski
llvmlistbot at llvm.org
Tue Sep 1 09:01:37 PDT 2026
================
@@ -4379,6 +4379,15 @@ ParseResult OuterProductOp::parse(OpAsmParser &parser, OperationState &result) {
if (!vLHS)
return parser.emitError(parser.getNameLoc(),
"expected vector type for operand #1");
+ // The result type is built below from dimension 0 of the operands, which a
+ // 0-d vector does not have. Only that case has to be caught here; a higher
+ // rank still reaches the verifier, which rejects it with the same wording.
----------------
banach-space wrote:
```suggestion
// // Rank-0 vectors are not supported. Since there are no dimensions from which
// to build the result type (see below), fail here rather than in the verifier.
```
https://github.com/llvm/llvm-project/pull/219917
More information about the Mlir-commits
mailing list