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

This commit is contained in:
Mehdi Amini 2022-01-31 07:55:00 +00:00
parent f38767d771
commit 081cff628a
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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"