MLIR  19.0.0git
Functions
LLVMIR.h File Reference
#include "mlir-c/IR.h"
#include "mlir-c/Support.h"
#include "llvm-c/Support.h"

Go to the source code of this file.

Functions

MLIR_CAPI_EXPORTED 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()

MLIR_CAPI_EXPORTED 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().