[all-commits] [llvm/llvm-project] 8dea78: [mlir][tosa] Add tosa shape inference with InferRe...

rsuderman via All-commits all-commits at lists.llvm.org
Thu Jul 1 16:07:29 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8dea784b3ed7df3edd9e3b59b1e1b58d2a4ac175
      https://github.com/llvm/llvm-project/commit/8dea784b3ed7df3edd9e3b59b1e1b58d2a4ac175
  Author: Rob Suderman <rob.suderman at gmail.com>
  Date:   2021-07-01 (Thu, 01 Jul 2021)

  Changed paths:
    M mlir/include/mlir/Dialect/Tosa/IR/TosaOps.h
    M mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
    M mlir/include/mlir/Dialect/Tosa/Transforms/Passes.h
    M mlir/include/mlir/Dialect/Tosa/Transforms/Passes.td
    M mlir/lib/Dialect/Tosa/IR/TosaOps.cpp
    M mlir/lib/Dialect/Tosa/Transforms/CMakeLists.txt
    A mlir/lib/Dialect/Tosa/Transforms/TosaInferShapes.cpp
    M mlir/lib/Dialect/Tosa/Transforms/TosaMakeBroadcastable.cpp
    M mlir/test/Conversion/TosaToLinalg/tosa-to-linalg.mlir
    A mlir/test/Dialect/Tosa/tosa_infer_shapes.mlir
    M mlir/test/lib/Dialect/Tosa/TosaTestPasses.cpp

  Log Message:
  -----------
  [mlir][tosa] Add tosa shape inference with InferReturnTypeComponent

Added InferReturnTypeComponents for NAry operations, reshape, and reverse.
With the additional tosa-infer-shapes pass, we can infer/propagate shapes
across a set of TOSA operations. Current version does not modify the
FuncOp type by inserting an unrealized conversion cast prior to any new
non-matchin returns.

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




More information about the All-commits mailing list