[mlir][NFC] Drop a few unnecessary includes from Pass.h

This commit is contained in:
River Riddle 2022-04-07 23:29:25 -07:00
parent 3d4ca8a8c3
commit 36d3efea15
39 changed files with 41 additions and 4 deletions

View File

@ -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<OperationPass<ModuleOp>> createConvertControlFlowToSPIRVPass();

View File

@ -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<OperationPass<ModuleOp>> createConvertFuncToSPIRVPass();

View File

@ -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<OperationPass<ModuleOp>> createLinalgToSPIRVPass();

View File

@ -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<OperationPass<ModuleOp>> createConvertMathToSPIRVPass();

View File

@ -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<OperationPass<ModuleOp>> createConvertMemRefToSPIRVPass();

View File

@ -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<OperationPass<ModuleOp>> createConvertSCFToSPIRVPass();

View File

@ -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<OperationPass<ModuleOp>> createConvertTensorToSPIRVPass();

View File

@ -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<OperationPass<ModuleOp>> createConvertVectorToSPIRVPass();

View File

@ -16,6 +16,7 @@
#include "mlir/Pass/Pass.h"
namespace mlir {
class ModuleOp;
std::unique_ptr<Pass> createAsyncParallelForPass();

View File

@ -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 {

View File

@ -18,6 +18,8 @@
namespace mlir {
class AffineDialect;
class ModuleOp;
namespace func {
class FuncDialect;
} // namespace func

View File

@ -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"

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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"

View File

@ -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 {

View File

@ -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 {

View File

@ -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"

View File

@ -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 {

View File

@ -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 {

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -12,6 +12,7 @@
//===----------------------------------------------------------------------===//
#include "PassDetail.h"
#include "mlir/IR/SymbolTable.h"
#include "mlir/Transforms/Passes.h"
using namespace mlir;

View File

@ -6,15 +6,15 @@
//
//===----------------------------------------------------------------------===//
#include <utility>
#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 <utility>
using namespace mlir;

View File

@ -12,6 +12,7 @@
//===----------------------------------------------------------------------===//
#include "mlir/Analysis/CallGraph.h"
#include "mlir/IR/BuiltinOps.h"
#include "mlir/Pass/Pass.h"
using namespace mlir;

View File

@ -12,6 +12,7 @@
//===----------------------------------------------------------------------===//
#include "mlir/Analysis/Liveness.h"
#include "mlir/IR/SymbolTable.h"
#include "mlir/Pass/Pass.h"
using namespace mlir;

View File

@ -7,6 +7,7 @@
//===----------------------------------------------------------------------===//
#include "mlir/Analysis/SliceAnalysis.h"
#include "mlir/IR/SymbolTable.h"
#include "mlir/Pass/Pass.h"
using namespace mlir;

View File

@ -7,6 +7,7 @@
//===----------------------------------------------------------------------===//
#include "TestAttributes.h"
#include "mlir/IR/BuiltinOps.h"
#include "mlir/Pass/Pass.h"
#include "llvm/Support/FormatVariadic.h"

View File

@ -11,6 +11,7 @@
//
//===----------------------------------------------------------------------===//
#include "mlir/IR/SymbolTable.h"
#include "mlir/Pass/Pass.h"
#include "llvm/Support/SourceMgr.h"

View File

@ -13,6 +13,7 @@
//===----------------------------------------------------------------------===//
#include "mlir/IR/Dominance.h"
#include "mlir/IR/SymbolTable.h"
#include "mlir/Pass/Pass.h"
using namespace mlir;

View File

@ -7,6 +7,7 @@
//===----------------------------------------------------------------------===//
#include "TestTypes.h"
#include "mlir/IR/BuiltinOps.h"
#include "mlir/Pass/Pass.h"
using namespace mlir;

View File

@ -7,6 +7,7 @@
//===----------------------------------------------------------------------===//
#include "mlir/IR/Builders.h"
#include "mlir/IR/BuiltinOps.h"
#include "mlir/Pass/Pass.h"
using namespace mlir;

View File

@ -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"

View File

@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "mlir/IR/BuiltinOps.h"
#include "mlir/Pass/Pass.h"
using namespace mlir;

View File

@ -10,6 +10,7 @@
//
//===----------------------------------------------------------------------===//
#include "mlir/IR/BuiltinOps.h"
#include "mlir/Pass/Pass.h"
#include "mlir/Pass/PassManager.h"