[all-commits] [llvm/llvm-project] 860220: [mlir][tensor] Relax input type requirement on `te...

Markus Böck via All-commits all-commits at lists.llvm.org
Mon Jun 30 00:49:45 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8602204d9fc483c7c58fa4e4d422d9bffb4e4e95
      https://github.com/llvm/llvm-project/commit/8602204d9fc483c7c58fa4e4d422d9bffb4e4e95
  Author: Markus Böck <markus.boeck02 at gmail.com>
  Date:   2025-06-30 (Mon, 30 Jun 2025)

  Changed paths:
    M mlir/include/mlir/Dialect/Tensor/IR/TensorOps.td
    M mlir/test/Dialect/Tensor/bufferize.mlir
    M mlir/test/Dialect/Tensor/invalid.mlir
    M mlir/test/Dialect/Tensor/ops.mlir

  Log Message:
  -----------
  [mlir][tensor] Relax input type requirement on `tensor.splat` (#145893)

`tensor.splat` is currently restricted to only accepting input values
that are of integer, index or float type.

This is much more restrictive than the tensor type itself as well as any
lowerings of it.

This PR therefore removes this restriction by using `AnyType` for the
input value. Whether the type is actually valid or not for a tensor
remains verified through the type equality of the result tensor element
type and the input type.



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