//===- TestTransformDialectInterpreter.cpp --------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // This file defines a test pass that interprets Transform dialect operations in // the module. // //===----------------------------------------------------------------------===// #include "mlir/Dialect/Transform/Interfaces/TransformInterfaces.h" #include "mlir/IR/BuiltinOps.h" #include "mlir/Pass/Pass.h" usingnamespacemlir; namespace { template <typename Derived> class OpPassWrapper : public PassWrapper<Derived, OperationPass<>> { … }; struct TestTransformDialectEraseSchedulePass : public PassWrapper<TestTransformDialectEraseSchedulePass, OperationPass<ModuleOp>> { … }; } // namespace namespace mlir { namespace test { /// Registers the test pass for erasing transform dialect ops. void registerTestTransformDialectEraseSchedulePass() { … } } // namespace test } // namespace mlir