[mlir] Remove unused includes (NFC) (#148872)
These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-specific build failures.
This commit is contained in:
parent
b454062456
commit
606e7f90b1
@ -7,8 +7,6 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "mlir/Debug/BreakpointManagers/FileLineColLocBreakpointManager.h"
|
||||
#include "mlir/IR/Diagnostics.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
|
||||
using namespace mlir;
|
||||
using namespace mlir::tracing;
|
||||
|
@ -11,8 +11,6 @@
|
||||
#include "llvm/ADT/ScopeExit.h"
|
||||
#include "llvm/Support/FormatVariadic.h"
|
||||
|
||||
#include <cstddef>
|
||||
|
||||
using namespace mlir;
|
||||
using namespace mlir::tracing;
|
||||
|
||||
|
@ -9,8 +9,6 @@
|
||||
#include "mlir/Debug/Observers/ActionProfiler.h"
|
||||
#include "mlir/Debug/BreakpointManager.h"
|
||||
#include "mlir/IR/Action.h"
|
||||
#include "mlir/Rewrite/PatternApplicator.h"
|
||||
#include "llvm/Support/Casting.h"
|
||||
#include "llvm/Support/Threading.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include <chrono>
|
||||
|
@ -9,9 +9,7 @@
|
||||
#include <utility>
|
||||
|
||||
#include "mlir/IR/BuiltinTypes.h"
|
||||
#include "mlir/Interfaces/CallInterfaces.h"
|
||||
#include "mlir/Interfaces/ControlFlowInterfaces.h"
|
||||
#include "llvm/ADT/SmallPtrSet.h"
|
||||
|
||||
using namespace mlir;
|
||||
|
||||
|
@ -9,7 +9,6 @@
|
||||
#include "mlir/Interfaces/LoopLikeInterface.h"
|
||||
|
||||
#include "mlir/Interfaces/FunctionInterfaces.h"
|
||||
#include "llvm/ADT/DenseSet.h"
|
||||
|
||||
using namespace mlir;
|
||||
|
||||
|
@ -9,7 +9,6 @@
|
||||
#include "mlir/Interfaces/SideEffectInterfaces.h"
|
||||
|
||||
#include "mlir/IR/SymbolTable.h"
|
||||
#include "llvm/ADT/SmallPtrSet.h"
|
||||
#include <utility>
|
||||
|
||||
using namespace mlir;
|
||||
|
@ -13,7 +13,6 @@
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#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"
|
||||
@ -22,12 +21,9 @@
|
||||
#include "llvm/ADT/Hashing.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ADT/ScopeExit.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
#include "llvm/Support/CrashRecoveryContext.h"
|
||||
#include "llvm/Support/Mutex.h"
|
||||
#include "llvm/Support/Signals.h"
|
||||
#include "llvm/Support/Threading.h"
|
||||
#include "llvm/Support/ToolOutputFile.h"
|
||||
#include <optional>
|
||||
|
||||
using namespace mlir;
|
||||
|
@ -8,16 +8,13 @@
|
||||
|
||||
#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/Parser/Parser.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/Support/FileUtilities.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ADT/ScopeExit.h"
|
||||
#include "llvm/ADT/SetVector.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
#include "llvm/Support/CrashRecoveryContext.h"
|
||||
#include "llvm/Support/ManagedStatic.h"
|
||||
#include "llvm/Support/Mutex.h"
|
||||
|
@ -11,7 +11,6 @@
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/Support/Threading.h"
|
||||
|
||||
#include <chrono>
|
||||
#include <optional>
|
||||
|
||||
using namespace mlir;
|
||||
|
@ -8,7 +8,6 @@
|
||||
|
||||
#include "mlir/Query/Matcher/ErrorBuilder.h"
|
||||
#include "Diagnostics.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include "llvm/ADT/Twine.h"
|
||||
#include <initializer_list>
|
||||
|
||||
|
@ -13,7 +13,6 @@
|
||||
#include "mlir/IR/Verifier.h"
|
||||
#include "mlir/Query/Matcher/MatchFinder.h"
|
||||
#include "mlir/Query/QuerySession.h"
|
||||
#include "llvm/ADT/SetVector.h"
|
||||
#include "llvm/Support/SourceMgr.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
|
||||
|
@ -18,7 +18,6 @@
|
||||
#include "mlir/IR/IRMapping.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <limits>
|
||||
|
||||
using namespace mlir;
|
||||
|
@ -15,7 +15,6 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "mlir/IR/DialectInterface.h"
|
||||
#include "mlir/IR/OpDefinition.h"
|
||||
#include "mlir/Reducer/Passes.h"
|
||||
#include "mlir/Reducer/ReductionNode.h"
|
||||
#include "mlir/Reducer/ReductionPatternInterface.h"
|
||||
@ -24,9 +23,7 @@
|
||||
#include "mlir/Transforms/GreedyPatternRewriteDriver.h"
|
||||
|
||||
#include "llvm/ADT/ArrayRef.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/Support/Allocator.h"
|
||||
#include "llvm/Support/ManagedStatic.h"
|
||||
|
||||
namespace mlir {
|
||||
#define GEN_PASS_DEF_REDUCTIONTREEPASS
|
||||
|
@ -9,7 +9,6 @@
|
||||
#include "mlir/Rewrite/FrozenRewritePatternSet.h"
|
||||
#include "ByteCode.h"
|
||||
#include "mlir/Interfaces/SideEffectInterfaces.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/Pass/PassManager.h"
|
||||
#include <optional>
|
||||
|
||||
|
@ -19,13 +19,11 @@
|
||||
#include "llvm/Support/Allocator.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
#include "llvm/Support/Format.h"
|
||||
#include "llvm/Support/FormatVariadic.h"
|
||||
#include "llvm/Support/ManagedStatic.h"
|
||||
#include "llvm/Support/RWMutex.h"
|
||||
#include "llvm/Support/Threading.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
|
||||
#include <atomic>
|
||||
#include <chrono>
|
||||
#include <optional>
|
||||
|
||||
|
@ -13,12 +13,10 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "mlir/Tools/PDLL/CodeGen/CPPGen.h"
|
||||
#include "mlir/Dialect/PDL/IR/PDL.h"
|
||||
#include "mlir/Dialect/PDL/IR/PDLOps.h"
|
||||
#include "mlir/IR/BuiltinOps.h"
|
||||
#include "mlir/Tools/PDLL/AST/Nodes.h"
|
||||
#include "mlir/Tools/PDLL/ODS/Operation.h"
|
||||
#include "llvm/ADT/SmallString.h"
|
||||
#include "llvm/ADT/StringExtras.h"
|
||||
#include "llvm/ADT/StringSet.h"
|
||||
#include "llvm/ADT/TypeSwitch.h"
|
||||
|
@ -12,7 +12,6 @@
|
||||
#include "mlir/Tools/PDLL/ODS/Operation.h"
|
||||
#include "llvm/Support/ScopedPrinter.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include <optional>
|
||||
|
||||
using namespace mlir;
|
||||
using namespace mlir::pdll::ods;
|
||||
|
@ -7,9 +7,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "mlir/Tools/PDLL/ODS/Dialect.h"
|
||||
#include "mlir/Tools/PDLL/ODS/Constraint.h"
|
||||
#include "mlir/Tools/PDLL/ODS/Operation.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
|
||||
using namespace mlir;
|
||||
using namespace mlir::pdll::ods;
|
||||
|
@ -25,7 +25,6 @@
|
||||
#include "llvm/ADT/StringExtras.h"
|
||||
#include "llvm/ADT/TypeSwitch.h"
|
||||
#include "llvm/Support/FormatVariadic.h"
|
||||
#include "llvm/Support/ManagedStatic.h"
|
||||
#include "llvm/Support/SaveAndRestore.h"
|
||||
#include "llvm/Support/ScopedPrinter.h"
|
||||
#include "llvm/TableGen/Error.h"
|
||||
|
@ -8,7 +8,6 @@
|
||||
|
||||
#include "mlir/Tools/lsp-server-support/Logging.h"
|
||||
#include "llvm/Support/Chrono.h"
|
||||
#include "llvm/Support/ManagedStatic.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
|
||||
using namespace mlir;
|
||||
|
@ -11,14 +11,9 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "mlir/Tools/lsp-server-support/Protocol.h"
|
||||
#include "mlir/Tools/lsp-server-support/Logging.h"
|
||||
#include "llvm/ADT/Hashing.h"
|
||||
#include "llvm/ADT/SmallString.h"
|
||||
#include "llvm/ADT/StringExtras.h"
|
||||
#include "llvm/ADT/StringSet.h"
|
||||
#include "llvm/Support/ErrorHandling.h"
|
||||
#include "llvm/Support/Format.h"
|
||||
#include "llvm/Support/FormatVariadic.h"
|
||||
#include "llvm/Support/JSON.h"
|
||||
#include "llvm/Support/MemoryBuffer.h"
|
||||
#include "llvm/Support/Path.h"
|
||||
|
@ -11,7 +11,6 @@
|
||||
#include "mlir/Tools/lsp-server-support/Logging.h"
|
||||
#include "mlir/Tools/lsp-server-support/Protocol.h"
|
||||
#include "llvm/ADT/SmallString.h"
|
||||
#include "llvm/Support/Errno.h"
|
||||
#include "llvm/Support/Error.h"
|
||||
#include <optional>
|
||||
#include <system_error>
|
||||
|
@ -15,20 +15,15 @@
|
||||
#include "mlir/Bytecode/BytecodeWriter.h"
|
||||
#include "mlir/Debug/CLOptionsSetup.h"
|
||||
#include "mlir/Debug/Counter.h"
|
||||
#include "mlir/Debug/DebuggerExecutionContextHook.h"
|
||||
#include "mlir/Debug/ExecutionContext.h"
|
||||
#include "mlir/Debug/Observers/ActionLogging.h"
|
||||
#include "mlir/Dialect/IRDL/IR/IRDL.h"
|
||||
#include "mlir/Dialect/IRDL/IRDLLoading.h"
|
||||
#include "mlir/IR/AsmState.h"
|
||||
#include "mlir/IR/Attributes.h"
|
||||
#include "mlir/IR/BuiltinOps.h"
|
||||
#include "mlir/IR/Diagnostics.h"
|
||||
#include "mlir/IR/Dialect.h"
|
||||
#include "mlir/IR/Location.h"
|
||||
#include "mlir/IR/MLIRContext.h"
|
||||
#include "mlir/Parser/Parser.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/Pass/PassManager.h"
|
||||
#include "mlir/Pass/PassRegistry.h"
|
||||
#include "mlir/Support/FileUtilities.h"
|
||||
@ -39,14 +34,12 @@
|
||||
#include "mlir/Tools/Plugins/PassPlugin.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
#include "llvm/Support/FileUtilities.h"
|
||||
#include "llvm/Support/InitLLVM.h"
|
||||
#include "llvm/Support/LogicalResult.h"
|
||||
#include "llvm/Support/ManagedStatic.h"
|
||||
#include "llvm/Support/Process.h"
|
||||
#include "llvm/Support/Regex.h"
|
||||
#include "llvm/Support/SourceMgr.h"
|
||||
#include "llvm/Support/StringSaver.h"
|
||||
#include "llvm/Support/ThreadPool.h"
|
||||
#include "llvm/Support/ToolOutputFile.h"
|
||||
|
||||
|
@ -12,8 +12,6 @@
|
||||
#include "Protocol.h"
|
||||
#include "mlir/Tools/lsp-server-support/Logging.h"
|
||||
#include "mlir/Tools/lsp-server-support/Transport.h"
|
||||
#include "llvm/ADT/FunctionExtras.h"
|
||||
#include "llvm/ADT/StringMap.h"
|
||||
#include <optional>
|
||||
|
||||
#define DEBUG_TYPE "pdll-lsp-server"
|
||||
|
@ -11,14 +11,8 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "Protocol.h"
|
||||
#include "llvm/ADT/Hashing.h"
|
||||
#include "llvm/ADT/SmallString.h"
|
||||
#include "llvm/Support/ErrorHandling.h"
|
||||
#include "llvm/Support/Format.h"
|
||||
#include "llvm/Support/FormatVariadic.h"
|
||||
#include "llvm/Support/JSON.h"
|
||||
#include "llvm/Support/Path.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
|
||||
using namespace mlir;
|
||||
using namespace mlir::lsp;
|
||||
|
@ -14,12 +14,9 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "mlir/Tools/mlir-reduce/MlirReduceMain.h"
|
||||
#include "mlir/IR/PatternMatch.h"
|
||||
#include "mlir/Parser/Parser.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/Pass/PassManager.h"
|
||||
#include "mlir/Reducer/Passes.h"
|
||||
#include "mlir/Rewrite/FrozenRewritePatternSet.h"
|
||||
#include "mlir/Support/FileUtilities.h"
|
||||
#include "mlir/Tools/ParseUtilities.h"
|
||||
#include "llvm/Support/InitLLVM.h"
|
||||
|
@ -12,8 +12,6 @@
|
||||
|
||||
#include "mlir/Tools/mlir-translate/Translation.h"
|
||||
#include "mlir/IR/AsmState.h"
|
||||
#include "mlir/IR/BuiltinOps.h"
|
||||
#include "mlir/IR/Dialect.h"
|
||||
#include "mlir/IR/Verifier.h"
|
||||
#include "mlir/Parser/Parser.h"
|
||||
#include "mlir/Tools/ParseUtilities.h"
|
||||
|
@ -12,8 +12,6 @@
|
||||
#include "mlir/Tools/lsp-server-support/Logging.h"
|
||||
#include "mlir/Tools/lsp-server-support/Protocol.h"
|
||||
#include "mlir/Tools/lsp-server-support/Transport.h"
|
||||
#include "llvm/ADT/FunctionExtras.h"
|
||||
#include "llvm/ADT/StringMap.h"
|
||||
#include <optional>
|
||||
|
||||
using namespace mlir;
|
||||
|
Loading…
x
Reference in New Issue
Block a user