From 36d3efea15e6202edd64b05de38d8379e2baddb2 Mon Sep 17 00:00:00 2001 From: River Riddle Date: Thu, 7 Apr 2022 23:29:25 -0700 Subject: [PATCH] [mlir][NFC] Drop a few unnecessary includes from Pass.h --- .../Conversion/ControlFlowToSPIRV/ControlFlowToSPIRVPass.h | 1 + mlir/include/mlir/Conversion/FuncToSPIRV/FuncToSPIRVPass.h | 1 + .../include/mlir/Conversion/LinalgToSPIRV/LinalgToSPIRVPass.h | 1 + mlir/include/mlir/Conversion/MathToSPIRV/MathToSPIRVPass.h | 1 + .../include/mlir/Conversion/MemRefToSPIRV/MemRefToSPIRVPass.h | 1 + mlir/include/mlir/Conversion/SCFToSPIRV/SCFToSPIRVPass.h | 1 + .../include/mlir/Conversion/TensorToSPIRV/TensorToSPIRVPass.h | 1 + .../include/mlir/Conversion/VectorToSPIRV/VectorToSPIRVPass.h | 1 + mlir/include/mlir/Dialect/Async/Passes.h | 1 + mlir/include/mlir/Dialect/Func/Transforms/Passes.h | 1 + mlir/include/mlir/Dialect/MemRef/Transforms/Passes.h | 2 ++ mlir/include/mlir/Pass/Pass.h | 2 -- mlir/include/mlir/Reducer/PassDetail.h | 1 + mlir/lib/Conversion/PassDetail.h | 1 + mlir/lib/Dialect/Arithmetic/Transforms/PassDetail.h | 1 + mlir/lib/Dialect/Async/Transforms/PassDetail.h | 1 + mlir/lib/Dialect/Bufferization/Transforms/PassDetail.h | 1 + mlir/lib/Dialect/Func/Transforms/PassDetail.h | 1 + mlir/lib/Dialect/Linalg/Transforms/PassDetail.h | 1 + mlir/lib/Dialect/MemRef/Transforms/PassDetail.h | 2 ++ mlir/lib/Dialect/SPIRV/Transforms/PassDetail.h | 1 + mlir/lib/Pass/IRPrinting.cpp | 1 + mlir/lib/Pass/Pass.cpp | 1 + mlir/lib/Pass/PassCrashRecovery.cpp | 1 + mlir/lib/Transforms/CSE.cpp | 1 + mlir/lib/Transforms/ControlFlowSink.cpp | 1 + mlir/lib/Transforms/SymbolDCE.cpp | 1 + mlir/lib/Transforms/ViewOpGraph.cpp | 4 ++-- mlir/test/lib/Analysis/TestCallGraph.cpp | 1 + mlir/test/lib/Analysis/TestLiveness.cpp | 1 + mlir/test/lib/Analysis/TestSlice.cpp | 1 + mlir/test/lib/IR/TestBuiltinAttributeInterfaces.cpp | 1 + mlir/test/lib/IR/TestDiagnostics.cpp | 1 + mlir/test/lib/IR/TestDominance.cpp | 1 + mlir/test/lib/IR/TestInterfaces.cpp | 1 + mlir/test/lib/IR/TestOpaqueLoc.cpp | 1 + mlir/test/lib/IR/TestPrintInvalid.cpp | 1 + mlir/test/lib/IR/TestVisitors.cpp | 1 + mlir/test/lib/Pass/TestDynamicPipeline.cpp | 1 + 39 files changed, 41 insertions(+), 4 deletions(-) diff --git a/mlir/include/mlir/Conversion/ControlFlowToSPIRV/ControlFlowToSPIRVPass.h b/mlir/include/mlir/Conversion/ControlFlowToSPIRV/ControlFlowToSPIRVPass.h index e9841d8aefb0..efce9d0de755 100644 --- a/mlir/include/mlir/Conversion/ControlFlowToSPIRV/ControlFlowToSPIRVPass.h +++ b/mlir/include/mlir/Conversion/ControlFlowToSPIRV/ControlFlowToSPIRVPass.h @@ -16,6 +16,7 @@ #include "mlir/Pass/Pass.h" namespace mlir { +class ModuleOp; /// Creates a pass to convert ControlFlow ops to SPIR-V ops. std::unique_ptr> createConvertControlFlowToSPIRVPass(); diff --git a/mlir/include/mlir/Conversion/FuncToSPIRV/FuncToSPIRVPass.h b/mlir/include/mlir/Conversion/FuncToSPIRV/FuncToSPIRVPass.h index f44c3054cc6d..14438d9ad452 100644 --- a/mlir/include/mlir/Conversion/FuncToSPIRV/FuncToSPIRVPass.h +++ b/mlir/include/mlir/Conversion/FuncToSPIRV/FuncToSPIRVPass.h @@ -16,6 +16,7 @@ #include "mlir/Pass/Pass.h" namespace mlir { +class ModuleOp; /// Creates a pass to convert Func ops to SPIR-V ops. std::unique_ptr> createConvertFuncToSPIRVPass(); diff --git a/mlir/include/mlir/Conversion/LinalgToSPIRV/LinalgToSPIRVPass.h b/mlir/include/mlir/Conversion/LinalgToSPIRV/LinalgToSPIRVPass.h index 0c3f775fbf45..f184fdf8f6a7 100644 --- a/mlir/include/mlir/Conversion/LinalgToSPIRV/LinalgToSPIRVPass.h +++ b/mlir/include/mlir/Conversion/LinalgToSPIRV/LinalgToSPIRVPass.h @@ -16,6 +16,7 @@ #include "mlir/Pass/Pass.h" namespace mlir { +class ModuleOp; /// Creates and returns a pass to convert Linalg ops to SPIR-V ops. std::unique_ptr> createLinalgToSPIRVPass(); diff --git a/mlir/include/mlir/Conversion/MathToSPIRV/MathToSPIRVPass.h b/mlir/include/mlir/Conversion/MathToSPIRV/MathToSPIRVPass.h index ce3c1ad1b3a0..83d12ff8fedc 100644 --- a/mlir/include/mlir/Conversion/MathToSPIRV/MathToSPIRVPass.h +++ b/mlir/include/mlir/Conversion/MathToSPIRV/MathToSPIRVPass.h @@ -16,6 +16,7 @@ #include "mlir/Pass/Pass.h" namespace mlir { +class ModuleOp; /// Creates a pass to convert Math ops to SPIR-V ops. std::unique_ptr> createConvertMathToSPIRVPass(); diff --git a/mlir/include/mlir/Conversion/MemRefToSPIRV/MemRefToSPIRVPass.h b/mlir/include/mlir/Conversion/MemRefToSPIRV/MemRefToSPIRVPass.h index a98cca192c94..a9990d99b160 100644 --- a/mlir/include/mlir/Conversion/MemRefToSPIRV/MemRefToSPIRVPass.h +++ b/mlir/include/mlir/Conversion/MemRefToSPIRV/MemRefToSPIRVPass.h @@ -16,6 +16,7 @@ #include "mlir/Pass/Pass.h" namespace mlir { +class ModuleOp; /// Creates a pass to convert MemRef ops to SPIR-V ops. std::unique_ptr> createConvertMemRefToSPIRVPass(); diff --git a/mlir/include/mlir/Conversion/SCFToSPIRV/SCFToSPIRVPass.h b/mlir/include/mlir/Conversion/SCFToSPIRV/SCFToSPIRVPass.h index 5e35d6267086..af3dbf1ed350 100644 --- a/mlir/include/mlir/Conversion/SCFToSPIRV/SCFToSPIRVPass.h +++ b/mlir/include/mlir/Conversion/SCFToSPIRV/SCFToSPIRVPass.h @@ -16,6 +16,7 @@ #include "mlir/Pass/Pass.h" namespace mlir { +class ModuleOp; /// Creates a pass to convert SCF ops into SPIR-V ops. std::unique_ptr> createConvertSCFToSPIRVPass(); diff --git a/mlir/include/mlir/Conversion/TensorToSPIRV/TensorToSPIRVPass.h b/mlir/include/mlir/Conversion/TensorToSPIRV/TensorToSPIRVPass.h index 396b60f32f53..93229d07e469 100644 --- a/mlir/include/mlir/Conversion/TensorToSPIRV/TensorToSPIRVPass.h +++ b/mlir/include/mlir/Conversion/TensorToSPIRV/TensorToSPIRVPass.h @@ -16,6 +16,7 @@ #include "mlir/Pass/Pass.h" namespace mlir { +class ModuleOp; /// Creates a pass to convert Tensor ops to SPIR-V ops. std::unique_ptr> createConvertTensorToSPIRVPass(); diff --git a/mlir/include/mlir/Conversion/VectorToSPIRV/VectorToSPIRVPass.h b/mlir/include/mlir/Conversion/VectorToSPIRV/VectorToSPIRVPass.h index e8ff8bd1b516..ad0971e379ea 100644 --- a/mlir/include/mlir/Conversion/VectorToSPIRV/VectorToSPIRVPass.h +++ b/mlir/include/mlir/Conversion/VectorToSPIRV/VectorToSPIRVPass.h @@ -16,6 +16,7 @@ #include "mlir/Pass/Pass.h" namespace mlir { +class ModuleOp; /// Creates a pass to convert Vector Ops to SPIR-V ops. std::unique_ptr> createConvertVectorToSPIRVPass(); diff --git a/mlir/include/mlir/Dialect/Async/Passes.h b/mlir/include/mlir/Dialect/Async/Passes.h index a9f020cfe74d..af0f22837761 100644 --- a/mlir/include/mlir/Dialect/Async/Passes.h +++ b/mlir/include/mlir/Dialect/Async/Passes.h @@ -16,6 +16,7 @@ #include "mlir/Pass/Pass.h" namespace mlir { +class ModuleOp; std::unique_ptr createAsyncParallelForPass(); diff --git a/mlir/include/mlir/Dialect/Func/Transforms/Passes.h b/mlir/include/mlir/Dialect/Func/Transforms/Passes.h index 5dd3059a1f86..82dd886b3a00 100644 --- a/mlir/include/mlir/Dialect/Func/Transforms/Passes.h +++ b/mlir/include/mlir/Dialect/Func/Transforms/Passes.h @@ -14,6 +14,7 @@ #ifndef MLIR_DIALECT_FUNC_TRANSFORMS_PASSES_H #define MLIR_DIALECT_FUNC_TRANSFORMS_PASSES_H +#include "mlir/IR/BuiltinOps.h" #include "mlir/Pass/Pass.h" namespace mlir { diff --git a/mlir/include/mlir/Dialect/MemRef/Transforms/Passes.h b/mlir/include/mlir/Dialect/MemRef/Transforms/Passes.h index e7bfe739e24a..4c7781d06a2a 100644 --- a/mlir/include/mlir/Dialect/MemRef/Transforms/Passes.h +++ b/mlir/include/mlir/Dialect/MemRef/Transforms/Passes.h @@ -18,6 +18,8 @@ namespace mlir { class AffineDialect; +class ModuleOp; + namespace func { class FuncDialect; } // namespace func diff --git a/mlir/include/mlir/Pass/Pass.h b/mlir/include/mlir/Pass/Pass.h index 89cebc701482..30ae5ae244fc 100644 --- a/mlir/include/mlir/Pass/Pass.h +++ b/mlir/include/mlir/Pass/Pass.h @@ -9,8 +9,6 @@ #ifndef MLIR_PASS_PASS_H #define MLIR_PASS_PASS_H -#include "mlir/IR/BuiltinOps.h" -#include "mlir/IR/Dialect.h" #include "mlir/Pass/AnalysisManager.h" #include "mlir/Pass/PassRegistry.h" #include "mlir/Support/LogicalResult.h" diff --git a/mlir/include/mlir/Reducer/PassDetail.h b/mlir/include/mlir/Reducer/PassDetail.h index ed47fa664544..327d9b581514 100644 --- a/mlir/include/mlir/Reducer/PassDetail.h +++ b/mlir/include/mlir/Reducer/PassDetail.h @@ -9,6 +9,7 @@ #ifndef MLIR_REDUCER_PASSDETAIL_H #define MLIR_REDUCER_PASSDETAIL_H +#include "mlir/IR/BuiltinOps.h" #include "mlir/Pass/Pass.h" namespace mlir { diff --git a/mlir/lib/Conversion/PassDetail.h b/mlir/lib/Conversion/PassDetail.h index c6a0f56f2741..5b630583e895 100644 --- a/mlir/lib/Conversion/PassDetail.h +++ b/mlir/lib/Conversion/PassDetail.h @@ -12,6 +12,7 @@ #include "mlir/Pass/Pass.h" #include "mlir/Conversion/GPUToROCDL/Runtimes.h" +#include "mlir/IR/BuiltinOps.h" #include "mlir/IR/FunctionInterfaces.h" namespace mlir { diff --git a/mlir/lib/Dialect/Arithmetic/Transforms/PassDetail.h b/mlir/lib/Dialect/Arithmetic/Transforms/PassDetail.h index 8db4f122852e..5877ccccd634 100644 --- a/mlir/lib/Dialect/Arithmetic/Transforms/PassDetail.h +++ b/mlir/lib/Dialect/Arithmetic/Transforms/PassDetail.h @@ -9,6 +9,7 @@ #ifndef DIALECT_ARITHMETIC_TRANSFORMS_PASSDETAIL_H_ #define DIALECT_ARITHMETIC_TRANSFORMS_PASSDETAIL_H_ +#include "mlir/IR/BuiltinOps.h" #include "mlir/Pass/Pass.h" namespace mlir { diff --git a/mlir/lib/Dialect/Async/Transforms/PassDetail.h b/mlir/lib/Dialect/Async/Transforms/PassDetail.h index 9eb93bb4caae..d2d71147fd77 100644 --- a/mlir/lib/Dialect/Async/Transforms/PassDetail.h +++ b/mlir/lib/Dialect/Async/Transforms/PassDetail.h @@ -9,6 +9,7 @@ #ifndef DIALECT_ASYNC_TRANSFORMS_PASSDETAIL_H_ #define DIALECT_ASYNC_TRANSFORMS_PASSDETAIL_H_ +#include "mlir/IR/BuiltinOps.h" #include "mlir/IR/Dialect.h" #include "mlir/Pass/Pass.h" diff --git a/mlir/lib/Dialect/Bufferization/Transforms/PassDetail.h b/mlir/lib/Dialect/Bufferization/Transforms/PassDetail.h index c1c8a63e071d..c63e85c8f566 100644 --- a/mlir/lib/Dialect/Bufferization/Transforms/PassDetail.h +++ b/mlir/lib/Dialect/Bufferization/Transforms/PassDetail.h @@ -10,6 +10,7 @@ #define DIALECT_BUFFERIZATION_TRANSFORMS_PASSDETAIL_H_ #include "mlir/Dialect/Func/IR/FuncOps.h" +#include "mlir/IR/BuiltinOps.h" #include "mlir/Pass/Pass.h" namespace mlir { diff --git a/mlir/lib/Dialect/Func/Transforms/PassDetail.h b/mlir/lib/Dialect/Func/Transforms/PassDetail.h index d6020f89a87a..1613c480a9fa 100644 --- a/mlir/lib/Dialect/Func/Transforms/PassDetail.h +++ b/mlir/lib/Dialect/Func/Transforms/PassDetail.h @@ -10,6 +10,7 @@ #define DIALECT_FUNC_TRANSFORMS_PASSDETAIL_H_ #include "mlir/Dialect/SCF/SCF.h" +#include "mlir/IR/BuiltinOps.h" #include "mlir/Pass/Pass.h" namespace mlir { diff --git a/mlir/lib/Dialect/Linalg/Transforms/PassDetail.h b/mlir/lib/Dialect/Linalg/Transforms/PassDetail.h index e2f8d10b80b0..63f947524cc7 100644 --- a/mlir/lib/Dialect/Linalg/Transforms/PassDetail.h +++ b/mlir/lib/Dialect/Linalg/Transforms/PassDetail.h @@ -11,6 +11,7 @@ #include "mlir/Dialect/Affine/IR/AffineOps.h" #include "mlir/Dialect/Func/IR/FuncOps.h" +#include "mlir/IR/BuiltinOps.h" #include "mlir/IR/Dialect.h" #include "mlir/Pass/Pass.h" diff --git a/mlir/lib/Dialect/MemRef/Transforms/PassDetail.h b/mlir/lib/Dialect/MemRef/Transforms/PassDetail.h index 318469f67fdb..ba7a87502dcb 100644 --- a/mlir/lib/Dialect/MemRef/Transforms/PassDetail.h +++ b/mlir/lib/Dialect/MemRef/Transforms/PassDetail.h @@ -9,6 +9,8 @@ #ifndef DIALECT_MEMREF_TRANSFORMS_PASSDETAIL_H_ #define DIALECT_MEMREF_TRANSFORMS_PASSDETAIL_H_ +#include "mlir/IR/BuiltinOps.h" +#include "mlir/IR/DialectRegistry.h" #include "mlir/Pass/Pass.h" namespace mlir { diff --git a/mlir/lib/Dialect/SPIRV/Transforms/PassDetail.h b/mlir/lib/Dialect/SPIRV/Transforms/PassDetail.h index da4f3c5c6be7..15f5c54d38f1 100644 --- a/mlir/lib/Dialect/SPIRV/Transforms/PassDetail.h +++ b/mlir/lib/Dialect/SPIRV/Transforms/PassDetail.h @@ -9,6 +9,7 @@ #ifndef DIALECT_SPIRV_TRANSFORMS_PASSDETAIL_H_ #define DIALECT_SPIRV_TRANSFORMS_PASSDETAIL_H_ +#include "mlir/IR/BuiltinOps.h" #include "mlir/Pass/Pass.h" namespace mlir { diff --git a/mlir/lib/Pass/IRPrinting.cpp b/mlir/lib/Pass/IRPrinting.cpp index c6bfa941a863..9e1e56ba4cb6 100644 --- a/mlir/lib/Pass/IRPrinting.cpp +++ b/mlir/lib/Pass/IRPrinting.cpp @@ -7,6 +7,7 @@ //===----------------------------------------------------------------------===// #include "PassDetail.h" +#include "mlir/IR/SymbolTable.h" #include "mlir/Pass/PassManager.h" #include "llvm/Support/Format.h" #include "llvm/Support/FormatVariadic.h" diff --git a/mlir/lib/Pass/Pass.cpp b/mlir/lib/Pass/Pass.cpp index 8b4310272d87..fb98b5c2ca79 100644 --- a/mlir/lib/Pass/Pass.cpp +++ b/mlir/lib/Pass/Pass.cpp @@ -14,6 +14,7 @@ #include "PassDetail.h" #include "mlir/IR/Diagnostics.h" #include "mlir/IR/Dialect.h" +#include "mlir/IR/OpDefinition.h" #include "mlir/IR/Threading.h" #include "mlir/IR/Verifier.h" #include "mlir/Support/FileUtilities.h" diff --git a/mlir/lib/Pass/PassCrashRecovery.cpp b/mlir/lib/Pass/PassCrashRecovery.cpp index d2d646dc7a32..0be0a8254955 100644 --- a/mlir/lib/Pass/PassCrashRecovery.cpp +++ b/mlir/lib/Pass/PassCrashRecovery.cpp @@ -9,6 +9,7 @@ #include "PassDetail.h" #include "mlir/IR/Diagnostics.h" #include "mlir/IR/Dialect.h" +#include "mlir/IR/SymbolTable.h" #include "mlir/IR/Verifier.h" #include "mlir/Pass/Pass.h" #include "mlir/Support/FileUtilities.h" diff --git a/mlir/lib/Transforms/CSE.cpp b/mlir/lib/Transforms/CSE.cpp index 080e393ea400..783a2260275d 100644 --- a/mlir/lib/Transforms/CSE.cpp +++ b/mlir/lib/Transforms/CSE.cpp @@ -13,6 +13,7 @@ #include "PassDetail.h" #include "mlir/IR/Dominance.h" +#include "mlir/Interfaces/SideEffectInterfaces.h" #include "mlir/Pass/Pass.h" #include "mlir/Transforms/Passes.h" #include "llvm/ADT/DenseMapInfo.h" diff --git a/mlir/lib/Transforms/ControlFlowSink.cpp b/mlir/lib/Transforms/ControlFlowSink.cpp index 9d996449c3fb..e56f4828bf12 100644 --- a/mlir/lib/Transforms/ControlFlowSink.cpp +++ b/mlir/lib/Transforms/ControlFlowSink.cpp @@ -16,6 +16,7 @@ #include "PassDetail.h" #include "mlir/IR/Dominance.h" #include "mlir/Interfaces/ControlFlowInterfaces.h" +#include "mlir/Interfaces/SideEffectInterfaces.h" #include "mlir/Transforms/ControlFlowSinkUtils.h" #include "mlir/Transforms/Passes.h" diff --git a/mlir/lib/Transforms/SymbolDCE.cpp b/mlir/lib/Transforms/SymbolDCE.cpp index 707e4bfff0d9..c197f5025c46 100644 --- a/mlir/lib/Transforms/SymbolDCE.cpp +++ b/mlir/lib/Transforms/SymbolDCE.cpp @@ -12,6 +12,7 @@ //===----------------------------------------------------------------------===// #include "PassDetail.h" +#include "mlir/IR/SymbolTable.h" #include "mlir/Transforms/Passes.h" using namespace mlir; diff --git a/mlir/lib/Transforms/ViewOpGraph.cpp b/mlir/lib/Transforms/ViewOpGraph.cpp index 04a1e0fd4ef0..538fb18ad19c 100644 --- a/mlir/lib/Transforms/ViewOpGraph.cpp +++ b/mlir/lib/Transforms/ViewOpGraph.cpp @@ -6,15 +6,15 @@ // //===----------------------------------------------------------------------===// -#include - #include "mlir/Transforms/ViewOpGraph.h" #include "PassDetail.h" #include "mlir/IR/Block.h" +#include "mlir/IR/BuiltinTypes.h" #include "mlir/IR/Operation.h" #include "mlir/Support/IndentedOstream.h" #include "llvm/Support/Format.h" #include "llvm/Support/GraphWriter.h" +#include using namespace mlir; diff --git a/mlir/test/lib/Analysis/TestCallGraph.cpp b/mlir/test/lib/Analysis/TestCallGraph.cpp index 38b677724581..0bd048f0e8df 100644 --- a/mlir/test/lib/Analysis/TestCallGraph.cpp +++ b/mlir/test/lib/Analysis/TestCallGraph.cpp @@ -12,6 +12,7 @@ //===----------------------------------------------------------------------===// #include "mlir/Analysis/CallGraph.h" +#include "mlir/IR/BuiltinOps.h" #include "mlir/Pass/Pass.h" using namespace mlir; diff --git a/mlir/test/lib/Analysis/TestLiveness.cpp b/mlir/test/lib/Analysis/TestLiveness.cpp index 07088c7ab968..e4ea521484bf 100644 --- a/mlir/test/lib/Analysis/TestLiveness.cpp +++ b/mlir/test/lib/Analysis/TestLiveness.cpp @@ -12,6 +12,7 @@ //===----------------------------------------------------------------------===// #include "mlir/Analysis/Liveness.h" +#include "mlir/IR/SymbolTable.h" #include "mlir/Pass/Pass.h" using namespace mlir; diff --git a/mlir/test/lib/Analysis/TestSlice.cpp b/mlir/test/lib/Analysis/TestSlice.cpp index c62532740bad..b445febde597 100644 --- a/mlir/test/lib/Analysis/TestSlice.cpp +++ b/mlir/test/lib/Analysis/TestSlice.cpp @@ -7,6 +7,7 @@ //===----------------------------------------------------------------------===// #include "mlir/Analysis/SliceAnalysis.h" +#include "mlir/IR/SymbolTable.h" #include "mlir/Pass/Pass.h" using namespace mlir; diff --git a/mlir/test/lib/IR/TestBuiltinAttributeInterfaces.cpp b/mlir/test/lib/IR/TestBuiltinAttributeInterfaces.cpp index 05a174643685..783512d72aae 100644 --- a/mlir/test/lib/IR/TestBuiltinAttributeInterfaces.cpp +++ b/mlir/test/lib/IR/TestBuiltinAttributeInterfaces.cpp @@ -7,6 +7,7 @@ //===----------------------------------------------------------------------===// #include "TestAttributes.h" +#include "mlir/IR/BuiltinOps.h" #include "mlir/Pass/Pass.h" #include "llvm/Support/FormatVariadic.h" diff --git a/mlir/test/lib/IR/TestDiagnostics.cpp b/mlir/test/lib/IR/TestDiagnostics.cpp index 8995defe8a26..1f5b29d00de7 100644 --- a/mlir/test/lib/IR/TestDiagnostics.cpp +++ b/mlir/test/lib/IR/TestDiagnostics.cpp @@ -11,6 +11,7 @@ // //===----------------------------------------------------------------------===// +#include "mlir/IR/SymbolTable.h" #include "mlir/Pass/Pass.h" #include "llvm/Support/SourceMgr.h" diff --git a/mlir/test/lib/IR/TestDominance.cpp b/mlir/test/lib/IR/TestDominance.cpp index 98f82388d515..fab80bdacb03 100644 --- a/mlir/test/lib/IR/TestDominance.cpp +++ b/mlir/test/lib/IR/TestDominance.cpp @@ -13,6 +13,7 @@ //===----------------------------------------------------------------------===// #include "mlir/IR/Dominance.h" +#include "mlir/IR/SymbolTable.h" #include "mlir/Pass/Pass.h" using namespace mlir; diff --git a/mlir/test/lib/IR/TestInterfaces.cpp b/mlir/test/lib/IR/TestInterfaces.cpp index 28ed6542f620..633d5304bc9b 100644 --- a/mlir/test/lib/IR/TestInterfaces.cpp +++ b/mlir/test/lib/IR/TestInterfaces.cpp @@ -7,6 +7,7 @@ //===----------------------------------------------------------------------===// #include "TestTypes.h" +#include "mlir/IR/BuiltinOps.h" #include "mlir/Pass/Pass.h" using namespace mlir; diff --git a/mlir/test/lib/IR/TestOpaqueLoc.cpp b/mlir/test/lib/IR/TestOpaqueLoc.cpp index 56c3240b263b..977d2b001a18 100644 --- a/mlir/test/lib/IR/TestOpaqueLoc.cpp +++ b/mlir/test/lib/IR/TestOpaqueLoc.cpp @@ -7,6 +7,7 @@ //===----------------------------------------------------------------------===// #include "mlir/IR/Builders.h" +#include "mlir/IR/BuiltinOps.h" #include "mlir/Pass/Pass.h" using namespace mlir; diff --git a/mlir/test/lib/IR/TestPrintInvalid.cpp b/mlir/test/lib/IR/TestPrintInvalid.cpp index 4b4322460428..a348c6fd3003 100644 --- a/mlir/test/lib/IR/TestPrintInvalid.cpp +++ b/mlir/test/lib/IR/TestPrintInvalid.cpp @@ -12,6 +12,7 @@ //===----------------------------------------------------------------------===// #include "mlir/Dialect/Func/IR/FuncOps.h" +#include "mlir/IR/BuiltinOps.h" #include "mlir/Pass/Pass.h" #include "llvm/Support/raw_ostream.h" diff --git a/mlir/test/lib/IR/TestVisitors.cpp b/mlir/test/lib/IR/TestVisitors.cpp index a2ddff0c0f43..f63576e548c9 100644 --- a/mlir/test/lib/IR/TestVisitors.cpp +++ b/mlir/test/lib/IR/TestVisitors.cpp @@ -6,6 +6,7 @@ // //===----------------------------------------------------------------------===// +#include "mlir/IR/BuiltinOps.h" #include "mlir/Pass/Pass.h" using namespace mlir; diff --git a/mlir/test/lib/Pass/TestDynamicPipeline.cpp b/mlir/test/lib/Pass/TestDynamicPipeline.cpp index 32ab8ec2b157..b46bf08657d5 100644 --- a/mlir/test/lib/Pass/TestDynamicPipeline.cpp +++ b/mlir/test/lib/Pass/TestDynamicPipeline.cpp @@ -10,6 +10,7 @@ // //===----------------------------------------------------------------------===// +#include "mlir/IR/BuiltinOps.h" #include "mlir/Pass/Pass.h" #include "mlir/Pass/PassManager.h"