[all-commits] [llvm/llvm-project] ca2ac2: [MLIR][Linalg] Handle Attribute in InitTensorOp

lorenzo chelini via All-commits all-commits at lists.llvm.org
Mon Jan 17 02:43:39 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ca2ac2bb14624257d9bc0a53919dbbc5f447c7fc
      https://github.com/llvm/llvm-project/commit/ca2ac2bb14624257d9bc0a53919dbbc5f447c7fc
  Author: Lorenzo Chelini <l.chelini at icloud.com>
  Date:   2022-01-17 (Mon, 17 Jan 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/Linalg/IR/LinalgOps.td
    M mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
    M mlir/test/Dialect/Linalg/roundtrip.mlir

  Log Message:
  -----------
  [MLIR][Linalg] Handle Attribute in InitTensorOp

In some cases, the result of an initTensorOp may have an attribute.
However, the Attribute was not passed to `inferResultType`, failing the
verifier. Therefore, propagate the Attribute to `inferResultType`.

Reviewed By: ftynse

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




More information about the All-commits mailing list