[all-commits] [llvm/llvm-project] b4bacc: Introduce tensor.insert op to Tensor dialect.

Han-Chung Wang via All-commits all-commits at lists.llvm.org
Sun Jun 13 13:46:12 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b4baccc2a760ea13901f201e6ca326284254d205
      https://github.com/llvm/llvm-project/commit/b4baccc2a760ea13901f201e6ca326284254d205
  Author: Hanhan Wang <hanchung at google.com>
  Date:   2021-06-13 (Sun, 13 Jun 2021)

  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/invalid.mlir
    M mlir/test/Dialect/Tensor/ops.mlir

  Log Message:
  -----------
  Introduce tensor.insert op to Tensor dialect.

Add `tensor.insert` op to make `tensor.extract`/`tensor.insert` work in pairs
for `scalar` domain. Like `subtensor`/`subtensor_insert` work in pairs in
`tensor` domain, and `vector.transfer_read`/`vector.transfer_write` work in
pairs in `vector` domain.

Reviewed By: silvas

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




More information about the All-commits mailing list