//===- TestInlining.cpp - Pass to inline calls in the test dialect --------===// // // 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 // //===----------------------------------------------------------------------===// // // TODO: This pass is only necessary because the main inlining pass // has not abstracted away the call+callee relationship. When the inlining // interface has this support, this pass should be removed. // //===----------------------------------------------------------------------===// #include "TestDialect.h" #include "TestOps.h" #include "mlir/Dialect/Func/IR/FuncOps.h" #include "mlir/IR/BuiltinOps.h" #include "mlir/IR/IRMapping.h" #include "mlir/Pass/Pass.h" #include "mlir/Transforms/InliningUtils.h" #include "llvm/ADT/StringSet.h" usingnamespacemlir; usingnamespacetest; namespace { struct Inliner : public PassWrapper<Inliner, OperationPass<func::FuncOp>> { … }; } // namespace namespace mlir { namespace test { void registerInliner() { … } } // namespace test } // namespace mlir