[all-commits] [llvm/llvm-project] 17721b: [mlir][linalg] Avoid template methods for parsing ...

Tobias Gysi via All-commits all-commits at lists.llvm.org
Wed Apr 20 06:12:23 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 17721b6915f2f2873651c06882aecffcc309a2c4
      https://github.com/llvm/llvm-project/commit/17721b6915f2f2873651c06882aecffcc309a2c4
  Author: gysit <gysit at google.com>
  Date:   2022-04-20 (Wed, 20 Apr 2022)

  Changed paths:
    M mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
    M mlir/test/mlir-linalg-ods-gen/test-linalg-ods-yaml-gen.yaml
    M mlir/tools/mlir-linalg-ods-gen/mlir-linalg-ods-yaml-gen.cpp

  Log Message:
  -----------
  [mlir][linalg] Avoid template methods for parsing and printing.

The revision avoids template methods for parsing and printing that are replicated for every named operation. Instead, the new methods take a regionBuilder argument. The revision reduces the compile time of LinalgOps.cpp from 11.2 to 10.2 seconds (debug build).

Reviewed By: nicolasvasilache

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




More information about the All-commits mailing list