[mlir][linalg] Avoid template methods for parsing and printing.
authorgysit <gysit@google.com>
Wed, 20 Apr 2022 13:05:47 +0000 (13:05 +0000)
committergysit <gysit@google.com>
Wed, 20 Apr 2022 13:06:31 +0000 (13:06 +0000)
commit17721b6915f2f2873651c06882aecffcc309a2c4
tree9d17f06c3f46b2247a4dcf2609b1ac27a0dc4e32
parent2f49163b3365e5dc046b03e422a048dd45aee3f0
[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
mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
mlir/test/mlir-linalg-ods-gen/test-linalg-ods-yaml-gen.yaml
mlir/tools/mlir-linalg-ods-gen/mlir-linalg-ods-yaml-gen.cpp