[all-commits] [llvm/llvm-project] 5a451e: [mlir][linalg] adapt named op generalization to wo...

Tobias Gysi via All-commits all-commits at lists.llvm.org
Wed Apr 21 00:07:56 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5a451e486f31de36913d6fc22a1b92b39caa3b0e
      https://github.com/llvm/llvm-project/commit/5a451e486f31de36913d6fc22a1b92b39caa3b0e
  Author: Tobias Gysi <gysit at google.com>
  Date:   2021-04-21 (Wed, 21 Apr 2021)

  Changed paths:
    M mlir/lib/Dialect/Linalg/Transforms/Generalization.cpp
    M mlir/test/Dialect/Linalg/generalize-named-ops.mlir

  Log Message:
  -----------
  [mlir][linalg] adapt named op generalization to work with captures.

Instead of always running the region builder check if the generalized op has a region attached. If yes inline the existing region instead of calling the region builder. This change circumvents a problem with named operations that have a region builder taking captures and the generalization pass not knowing about this captures.

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




More information about the All-commits mailing list