//===- BuildOnlyExtensionTest.cpp - unit test for transform extensions ----===// // // 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 // //===----------------------------------------------------------------------===// #include "mlir/Dialect/Func/IR/FuncOps.h" #include "mlir/Dialect/Transform/IR/TransformDialect.h" #include "mlir/IR/DialectRegistry.h" #include "mlir/IR/MLIRContext.h" #include "gtest/gtest.h" usingnamespacemlir; usingnamespacemlir::transform; namespace { class Extension : public TransformDialectExtension<Extension> { … }; } // end namespace TEST(BuildOnlyExtensionTest, buildOnlyExtension) { … } TEST(BuildOnlyExtensionTest, buildAndApplyExtension) { … }