#include "mlir/Pass/PassManager.h"
#include "mlir/Debug/BreakpointManagers/TagBreakpointManager.h"
#include "mlir/Debug/ExecutionContext.h"
#include "mlir/Dialect/Func/IR/FuncOps.h"
#include "mlir/IR/Builders.h"
#include "mlir/IR/BuiltinOps.h"
#include "mlir/IR/Diagnostics.h"
#include "mlir/Pass/Pass.h"
#include "gtest/gtest.h"
#include <memory>
usingnamespacemlir;
usingnamespacemlir::detail;
namespace {
struct GenericAnalysis { … };
struct OpSpecificAnalysis { … };
struct AnnotateFunctionPass
: public PassWrapper<AnnotateFunctionPass, OperationPass<func::FuncOp>> { … };
TEST(PassManagerTest, OpSpecificAnalysis) { … }
struct AddAttrFunctionPass
: public PassWrapper<AddAttrFunctionPass, OperationPass<func::FuncOp>> { … };
struct AddSecondAttrFunctionPass
: public PassWrapper<AddSecondAttrFunctionPass,
OperationPass<func::FuncOp>> { … };
TEST(PassManagerTest, ExecutionAction) { … }
namespace {
struct InvalidPass : Pass { … };
}
TEST(PassManagerTest, InvalidPass) { … }
struct InitializeCheckingPass
: public PassWrapper<InitializeCheckingPass, OperationPass<ModuleOp>> { … };
TEST(PassManagerTest, PassInitialization) { … }
}