Skip to content

Commit 2cf2ca3

Browse files
authored
[mlir][Target][Cpp] Cleanup includes (#85105)
1 parent 65f5e2c commit 2cf2ca3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

mlir/include/mlir/Target/Cpp/CppEmitter.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@
1313
#ifndef MLIR_TARGET_CPP_CPPEMITTER_H
1414
#define MLIR_TARGET_CPP_CPPEMITTER_H
1515

16-
#include "mlir/IR/BuiltinTypes.h"
17-
#include "mlir/IR/Value.h"
18-
#include "llvm/ADT/ScopedHashTable.h"
1916
#include "llvm/Support/raw_ostream.h"
20-
#include <stack>
2117

2218
namespace mlir {
19+
struct LogicalResult;
20+
class Operation;
2321
namespace emitc {
2422

2523
/// Translates the given operation to C++ code. The operation or operations in

mlir/lib/Target/Cpp/TranslateToCpp.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@
1818
#include "mlir/Support/LLVM.h"
1919
#include "mlir/Target/Cpp/CppEmitter.h"
2020
#include "llvm/ADT/DenseMap.h"
21+
#include "llvm/ADT/ScopedHashTable.h"
2122
#include "llvm/ADT/StringExtras.h"
2223
#include "llvm/ADT/StringMap.h"
2324
#include "llvm/ADT/TypeSwitch.h"
2425
#include "llvm/Support/Debug.h"
2526
#include "llvm/Support/FormatVariadic.h"
27+
#include <stack>
2628
#include <utility>
2729

2830
#define DEBUG_TYPE "translate-to-cpp"

0 commit comments

Comments
 (0)