[all-commits] [llvm/llvm-project] fd004a: [mlir] tosa.concat - Add InferTensorType interface

amrami via All-commits all-commits at lists.llvm.org
Tue Mar 21 08:01:25 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fd004a4986eb3ecc14f03a4ff4eef9bc06c78059
  Author: Maya Amrami <maya.amrami at mobileye.com>
  Date:   2023-03-21 (Tue, 21 Mar 2023)

  Changed paths:
    M mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
    M mlir/lib/Dialect/Tosa/IR/TosaOps.cpp
    M mlir/test/Dialect/Tosa/invalid.mlir
    M mlir/test/Dialect/Tosa/tosa-infer-shapes.mlir

  Log Message:
  [mlir] tosa.concat - Add InferTensorType interface

When this interface is used, a call to inferReturnTypeComponents()
is generated on creation and verification of the op.
A few changes were required in inferReturnTypeComponents():
- Emit error when it fails.
  The verifier calls this method now, and it is preferable to
  indicate what caused the failure.
- Fix the inferred return shapes so they have a type too.

Reviewed By: rsuderman

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

More information about the All-commits mailing list