[all-commits] [llvm/llvm-project] d9eacd: [mlir][vector] Reject a 0-d operand in the outerpr...

Alessandro Potenza via All-commits all-commits at lists.llvm.org
Thu Sep 17 07:37:52 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d9eacde3fa9ba53cb89fcf18cb0b3bd6d1c0ac53
      https://github.com/llvm/llvm-project/commit/d9eacde3fa9ba53cb89fcf18cb0b3bd6d1c0ac53
  Author: Alessandro Potenza <ap.alessandro.potenza at gmail.com>
  Date:   2026-09-17 (Thu, 17 Sep 2026)

  Changed paths:
    M mlir/lib/Dialect/Vector/IR/VectorOps.cpp
    M mlir/test/Dialect/Vector/invalid.mlir

  Log Message:
  -----------
  [mlir][vector] Reject a 0-d operand in the outerproduct parser (#219917)

`vector.outerproduct` builds its result type from dimension 0 of its
operands, which a 0-d vector does not have, so `mlir-opt` aborts while
parsing, before the verifier gets a chance to report anything:

```mlir
%0 = vector.outerproduct %a, %b : vector<f32>, vector<4xf32>
```

The parser now emits the same diagnostic the verifier already gives for
that operand, `expected 1-d vector for operand #1`. Only rank 0 is
caught here, rank 2 and above still reach the verifier unchanged.

This PR started out touching three parsers and was narrowed to
`outerproduct` at review request. The `transfer_read`/`transfer_write`
and `contract` parsers follow as separate PRs.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list