//===- TestCFGLoopInfo.cpp - Test CFG loop info analysis ------------------===// // // 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 implements logic for testing the CFGLoopInfo analysis. // //===----------------------------------------------------------------------===// #include "mlir/Analysis/CFGLoopInfo.h" #include "mlir/Interfaces/FunctionInterfaces.h" #include "mlir/Pass/Pass.h" usingnamespacemlir; namespace { /// A testing pass that applies the CFGLoopInfo analysis on a region and prints /// the information it collected to llvm::errs(). struct TestCFGLoopInfo : public PassWrapper<TestCFGLoopInfo, InterfacePass<FunctionOpInterface>> { … }; } // namespace void TestCFGLoopInfo::runOnOperation() { … } namespace mlir { namespace test { void registerTestCFGLoopInfoPass() { … } } // namespace test } // namespace mlir