From 081cff628a3bcecec212cd3f70c9b9992026d729 Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Mon, 31 Jan 2022 07:55:00 +0000 Subject: [PATCH] Add missing include to mlir/Target/LLVMIR/Import.h to be standalone (NFC) --- mlir/include/mlir/Target/LLVMIR/Import.h | 3 ++- mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mlir/include/mlir/Target/LLVMIR/Import.h b/mlir/include/mlir/Target/LLVMIR/Import.h index fa8f9f23f424..58bec9f80159 100644 --- a/mlir/include/mlir/Target/LLVMIR/Import.h +++ b/mlir/include/mlir/Target/LLVMIR/Import.h @@ -13,6 +13,7 @@ #ifndef MLIR_TARGET_LLVMIR_IMPORT_H #define MLIR_TARGET_LLVMIR_IMPORT_H +#include "mlir/IR/OwningOpRef.h" #include "mlir/Support/LLVM.h" #include "llvm/ADT/StringRef.h" #include @@ -25,8 +26,8 @@ class Module; namespace mlir { class DialectRegistry; - class MLIRContext; +class ModuleOp; /// Convert the given LLVM module into MLIR's LLVM dialect. The LLVM context is /// extracted from the registered LLVM IR dialect. In case of error, report it diff --git a/mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp b/mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp index 7a4b2846bebd..7b42f40f5ae6 100644 --- a/mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp +++ b/mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp @@ -10,12 +10,13 @@ // //===----------------------------------------------------------------------===// +#include "mlir/Target/LLVMIR/Import.h" + #include "mlir/Dialect/LLVMIR/LLVMDialect.h" #include "mlir/IR/Builders.h" #include "mlir/IR/BuiltinOps.h" #include "mlir/IR/BuiltinTypes.h" #include "mlir/IR/MLIRContext.h" -#include "mlir/Target/LLVMIR/Import.h" #include "mlir/Target/LLVMIR/TypeFromLLVM.h" #include "mlir/Translation.h"