//===- TestSymbolUses.cpp - Pass to test symbol uselists ------------------===// // // 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 "TestOps.h" #include "mlir/IR/BuiltinOps.h" #include "mlir/Pass/Pass.h" usingnamespacemlir; namespace { /// This is a symbol test pass that tests the symbol uselist functionality /// provided by the symbol table along with erasing from the symbol table. struct SymbolUsesPass : public PassWrapper<SymbolUsesPass, OperationPass<ModuleOp>> { … }; /// This is a symbol test pass that tests the symbol use replacement /// functionality provided by the symbol table. struct SymbolReplacementPass : public PassWrapper<SymbolReplacementPass, OperationPass<ModuleOp>> { … }; } // namespace namespace mlir { void registerSymbolTestPasses() { … } } // namespace mlir