[all-commits] [llvm/llvm-project] cfaf32: [mlir][tensor] Disallow unranked tensors for tenso...

Matthias Springer via All-commits all-commits at lists.llvm.org
Thu Oct 27 01:09:48 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cfaf3292df51090d03c1f98a95668246006813e1
      https://github.com/llvm/llvm-project/commit/cfaf3292df51090d03c1f98a95668246006813e1
  Author: Matthias Springer <springerm at google.com>
  Date:   2022-10-27 (Thu, 27 Oct 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/Tensor/IR/TensorOps.td
    M mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
    M mlir/test/Dialect/Tensor/canonicalize.mlir
    M mlir/test/Dialect/Tensor/ops.mlir

  Log Message:
  -----------
  [mlir][tensor] Disallow unranked tensors for tensor.extract/insert

When writing a tensor.extract/tensor.insert, the rank of the tensor is implied by the number of specified indices. When extracting from/inserting into an unranked tensor, it should first be casted to a ranked version.

Differential Revision: https://reviews.llvm.org/D136756




More information about the All-commits mailing list