Skip to content

Commit 081cff6

Browse files
committed
Add missing include to mlir/Target/LLVMIR/Import.h to be standalone (NFC)
1 parent f38767d commit 081cff6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

mlir/include/mlir/Target/LLVMIR/Import.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#ifndef MLIR_TARGET_LLVMIR_IMPORT_H
1414
#define MLIR_TARGET_LLVMIR_IMPORT_H
1515

16+
#include "mlir/IR/OwningOpRef.h"
1617
#include "mlir/Support/LLVM.h"
1718
#include "llvm/ADT/StringRef.h"
1819
#include <memory>
@@ -25,8 +26,8 @@ class Module;
2526
namespace mlir {
2627

2728
class DialectRegistry;
28-
2929
class MLIRContext;
30+
class ModuleOp;
3031

3132
/// Convert the given LLVM module into MLIR's LLVM dialect. The LLVM context is
3233
/// extracted from the registered LLVM IR dialect. In case of error, report it

mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13+
#include "mlir/Target/LLVMIR/Import.h"
14+
1315
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
1416
#include "mlir/IR/Builders.h"
1517
#include "mlir/IR/BuiltinOps.h"
1618
#include "mlir/IR/BuiltinTypes.h"
1719
#include "mlir/IR/MLIRContext.h"
18-
#include "mlir/Target/LLVMIR/Import.h"
1920
#include "mlir/Target/LLVMIR/TypeFromLLVM.h"
2021
#include "mlir/Translation.h"
2122

0 commit comments

Comments
 (0)