[all-commits] [llvm/llvm-project] b05322: [mlir][tosa] Add shape inference for tosa.while

rsuderman via All-commits all-commits at lists.llvm.org
Fri Sep 10 13:13:12 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b0532286fe486b5ee208bae53c7afba278cbd609
      https://github.com/llvm/llvm-project/commit/b0532286fe486b5ee208bae53c7afba278cbd609
  Author: Rob Suderman <rob.suderman at gmail.com>
  Date:   2021-09-10 (Fri, 10 Sep 2021)

  Changed paths:
    M mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
    M mlir/include/mlir/Dialect/Tosa/Utils/ShapeUtils.h
    M mlir/lib/Dialect/Tosa/IR/TosaOps.cpp
    M mlir/lib/Dialect/Tosa/Transforms/TosaInferShapes.cpp
    M mlir/test/Dialect/Tosa/tosa-infer-shapes.mlir

  Log Message:
  -----------
  [mlir][tosa] Add shape inference for tosa.while

Tosa.while shape inference requires repeatedly running shape inference across
the body of the loop until the types become static as we do not know the number
of iterations required by the loop body. Once the least specific arguments are
known they are propagated to both regions.

To determine the final end type, the least restrictive types are determined
from all yields.

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




More information about the All-commits mailing list