MLIR  20.0.0git
Functions
LLVMIR.cpp File Reference
#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...
 

Function Documentation

◆ mlirTranslateModuleToLLVMIR()

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.

Returns
the generated LLVM IR Module from the translated MLIR module, it is owned by the caller.

Definition at line 24 of file LLVMIR.cpp.

References mlir::translateModuleToLLVMIR(), unwrap(), and wrap().