[Mlir-commits] [mlir] 081cff6 - Add missing include to mlir/Target/LLVMIR/Import.h to be standalone (NFC)

Mehdi Amini llvmlistbot at llvm.org
Sun Jan 30 23:56:23 PST 2022


Author: Mehdi Amini
Date: 2022-01-31T07:55:00Z
New Revision: 081cff628a3bcecec212cd3f70c9b9992026d729

URL: https://github.com/llvm/llvm-project/commit/081cff628a3bcecec212cd3f70c9b9992026d729
DIFF: https://github.com/llvm/llvm-project/commit/081cff628a3bcecec212cd3f70c9b9992026d729.diff

LOG: Add missing include to mlir/Target/LLVMIR/Import.h to be standalone (NFC)

Added: 
    

Modified: 
    mlir/include/mlir/Target/LLVMIR/Import.h
    mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Target/LLVMIR/Import.h b/mlir/include/mlir/Target/LLVMIR/Import.h
index fa8f9f23f4247..58bec9f801591 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 <memory>
@@ -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 7a4b2846bebd7..7b42f40f5ae6f 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"
 


        


More information about the Mlir-commits mailing list