Skip to content

Commit 606e7f9

Browse files
[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.
1 parent b454062 commit 606e7f9

28 files changed

+0
-62
lines changed

mlir/lib/Debug/BreakpointManagers/FileLineColLocBreakpointManager.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
//===----------------------------------------------------------------------===//
88

99
#include "mlir/Debug/BreakpointManagers/FileLineColLocBreakpointManager.h"
10-
#include "mlir/IR/Diagnostics.h"
11-
#include "llvm/Support/raw_ostream.h"
1210

1311
using namespace mlir;
1412
using namespace mlir::tracing;

mlir/lib/Debug/ExecutionContext.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
#include "llvm/ADT/ScopeExit.h"
1212
#include "llvm/Support/FormatVariadic.h"
1313

14-
#include <cstddef>
15-
1614
using namespace mlir;
1715
using namespace mlir::tracing;
1816

mlir/lib/Debug/Observers/ActionProfiler.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
#include "mlir/Debug/Observers/ActionProfiler.h"
1010
#include "mlir/Debug/BreakpointManager.h"
1111
#include "mlir/IR/Action.h"
12-
#include "mlir/Rewrite/PatternApplicator.h"
13-
#include "llvm/Support/Casting.h"
1412
#include "llvm/Support/Threading.h"
1513
#include "llvm/Support/raw_ostream.h"
1614
#include <chrono>

mlir/lib/Interfaces/ControlFlowInterfaces.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
#include <utility>
1010

1111
#include "mlir/IR/BuiltinTypes.h"
12-
#include "mlir/Interfaces/CallInterfaces.h"
1312
#include "mlir/Interfaces/ControlFlowInterfaces.h"
14-
#include "llvm/ADT/SmallPtrSet.h"
1513

1614
using namespace mlir;
1715

mlir/lib/Interfaces/LoopLikeInterface.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include "mlir/Interfaces/LoopLikeInterface.h"
1010

1111
#include "mlir/Interfaces/FunctionInterfaces.h"
12-
#include "llvm/ADT/DenseSet.h"
1312

1413
using namespace mlir;
1514

mlir/lib/Interfaces/SideEffectInterfaces.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include "mlir/Interfaces/SideEffectInterfaces.h"
1010

1111
#include "mlir/IR/SymbolTable.h"
12-
#include "llvm/ADT/SmallPtrSet.h"
1312
#include <utility>
1413

1514
using namespace mlir;

mlir/lib/Pass/Pass.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include "mlir/Pass/Pass.h"
1414
#include "PassDetail.h"
1515
#include "mlir/IR/Diagnostics.h"
16-
#include "mlir/IR/Dialect.h"
1716
#include "mlir/IR/OpDefinition.h"
1817
#include "mlir/IR/Threading.h"
1918
#include "mlir/IR/Verifier.h"
@@ -22,12 +21,9 @@
2221
#include "llvm/ADT/Hashing.h"
2322
#include "llvm/ADT/STLExtras.h"
2423
#include "llvm/ADT/ScopeExit.h"
25-
#include "llvm/Support/CommandLine.h"
26-
#include "llvm/Support/CrashRecoveryContext.h"
2724
#include "llvm/Support/Mutex.h"
2825
#include "llvm/Support/Signals.h"
2926
#include "llvm/Support/Threading.h"
30-
#include "llvm/Support/ToolOutputFile.h"
3127
#include <optional>
3228

3329
using namespace mlir;

mlir/lib/Pass/PassCrashRecovery.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,13 @@
88

99
#include "PassDetail.h"
1010
#include "mlir/IR/Diagnostics.h"
11-
#include "mlir/IR/Dialect.h"
1211
#include "mlir/IR/SymbolTable.h"
1312
#include "mlir/IR/Verifier.h"
1413
#include "mlir/Parser/Parser.h"
1514
#include "mlir/Pass/Pass.h"
1615
#include "mlir/Support/FileUtilities.h"
1716
#include "llvm/ADT/STLExtras.h"
18-
#include "llvm/ADT/ScopeExit.h"
1917
#include "llvm/ADT/SetVector.h"
20-
#include "llvm/Support/CommandLine.h"
2118
#include "llvm/Support/CrashRecoveryContext.h"
2219
#include "llvm/Support/ManagedStatic.h"
2320
#include "llvm/Support/Mutex.h"

mlir/lib/Pass/PassTiming.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#include "llvm/ADT/SmallVector.h"
1212
#include "llvm/Support/Threading.h"
1313

14-
#include <chrono>
1514
#include <optional>
1615

1716
using namespace mlir;

mlir/lib/Query/Matcher/ErrorBuilder.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
#include "mlir/Query/Matcher/ErrorBuilder.h"
1010
#include "Diagnostics.h"
11-
#include "llvm/ADT/StringRef.h"
1211
#include "llvm/ADT/Twine.h"
1312
#include <initializer_list>
1413

0 commit comments

Comments
 (0)