Skip to content

[MLIR][Vector] Remove vector.splat - #162167

Merged
newling merged 2 commits into
llvm:mainfrom
newling:vector_deprecate_splat
Oct 10, 2025
Merged

newling merged 2 commits into
llvm:mainfrom
newling:vector_deprecate_splat

Conversation

@newling

@newling newling commented Oct 6, 2025 •

Copy link
Copy Markdown
Contributor

vector.splat has been deprecated (use the very similar vector.broadcast instead) with the last PR landing about 6 weeks ago.

The discourse discussion is at https://discourse.llvm.org/t/rfc-mlir-vector-deprecate-then-remove-vector-splat/87143/1
The last PR was #152230

This PR completely removes vector.splat. In addition to removing vector.splat from VectorOps.td, it

  • Updates the few remaining places where vector::SplatOp is created (now vector::BroadcastOp is created)
  • Removes temporary patterns where vector.splat is replaced by vector.broadcast

The only place 'vector.splat' appears is now the files

https://github.com/llvm/llvm-project/blob/main/mlir/utils/tree-sitter-mlir/test/corpus/op.txt
and
https://github.com/llvm/llvm-project/blob/main/mlir/utils/tree-sitter-mlir/dialect/vector.js

@artagnon maybe you can tell me what these files are, and if they should be updated?

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants