[mlir] add transform dialect entry point
authorAlex Zinenko <zinenko@google.com>
Tue, 11 Oct 2022 15:23:48 +0000 (15:23 +0000)
committerAlex Zinenko <zinenko@google.com>
Wed, 12 Oct 2022 08:16:28 +0000 (08:16 +0000)
commit32f0bde548cface29b26ee26763881dbcfb8bb58
tree171aab61529a08939f2fea6badcdd93037c8a63a
parent812ad2167bd2e27f5d0dee07bb03a5910616e0b6
[mlir] add transform dialect entry point

Introduce `transform::applyTransforms` as a top-level entry point to the
Transform dialect-driven transformation infrastructure, by analogy with
`applyFull/PartialConversion`. Clients are expected to use this function
and no longer need to maintain the transformation state. Make the
constructor of the TransformState private for that purpose.

Reviewed By: springerm

Differential Revision: https://reviews.llvm.org/D135681
mlir/include/mlir/Dialect/Transform/IR/TransformDialect.td
mlir/include/mlir/Dialect/Transform/IR/TransformInterfaces.h
mlir/lib/Dialect/Transform/IR/TransformInterfaces.cpp
mlir/test/Dialect/Transform/test-interpreter.mlir
mlir/test/lib/Dialect/Transform/TestTransformDialectInterpreter.cpp