//===- TestRegions.cpp - Pass to test Region's methods --------------------===// // // 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 "TestDialect.h" #include "mlir/Dialect/Func/IR/FuncOps.h" #include "mlir/IR/BuiltinOps.h" #include "mlir/Pass/Pass.h" usingnamespacemlir; namespace { /// This is a test pass that tests Region's takeBody method by making the first /// function take the body of the second. struct TakeBodyPass : public PassWrapper<TakeBodyPass, OperationPass<ModuleOp>> { … }; } // namespace namespace mlir { void registerRegionTestPasses() { … } } // namespace mlir