MLIR
20.0.0git
|
#include "mlir-c/Target/LLVMIR.h"
#include "llvm-c/Support.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
#include <memory>
#include "mlir/CAPI/IR.h"
#include "mlir/CAPI/Support.h"
#include "mlir/CAPI/Wrap.h"
#include "mlir/Target/LLVMIR/ModuleTranslation.h"
Go to the source code of this file.
Functions | |
LLVMModuleRef | mlirTranslateModuleToLLVMIR (MlirOperation module, LLVMContextRef context) |
Translate operation that satisfies LLVM dialect module requirements into an LLVM IR module living in the given context. More... | |
LLVMModuleRef mlirTranslateModuleToLLVMIR | ( | MlirOperation | module, |
LLVMContextRef | context | ||
) |
Translate operation that satisfies LLVM dialect module requirements into an LLVM IR module living in the given context.
This translates operations from any dilalect that has a registered implementation of LLVMTranslationDialectInterface.
Definition at line 24 of file LLVMIR.cpp.
References mlir::translateModuleToLLVMIR(), unwrap(), and wrap().