File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
mlir/include/mlir/Target/LLVMIR Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -20,10 +20,11 @@ class Module;
20
20
namespace mlir {
21
21
class Operation ;
22
22
23
- // / Translate operation that satisfies LLVM dialect module requirements into an
24
- // / LLVM IR module living in the given context. This translates operations from
25
- // / any dilalect that has a registered implementation of
26
- // / LLVMTranslationDialectInterface.
23
+ // / Translates a given LLVM dialect `module` into an LLVM IR module living in
24
+ // / the given context. Operates on any operation from dialects that provide a
25
+ // / registered implementation of the LLVMTranslationDialectInterface. Returns
26
+ // / nullptr when the translation fails.
27
+ // / Verifies the produced LLVM module, except when `disableVerification` is set.
27
28
std::unique_ptr<llvm::Module>
28
29
translateModuleToLLVMIR (Operation *module , llvm::LLVMContext &llvmContext,
29
30
llvm::StringRef name = " LLVMDialectModule" ,
You can’t perform that action at this time.
0 commit comments