[all-commits] [llvm/llvm-project] ed90f8: [mlir-translate] Support parsing operations other ...
rk via All-commits
all-commits at lists.llvm.org
Fri Oct 21 12:54:19 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ed90f8026e45b9f922002ad03c6f37c4881be1d8
https://github.com/llvm/llvm-project/commit/ed90f8026e45b9f922002ad03c6f37c4881be1d8
Author: rkayaith <rkayaith at gmail.com>
Date: 2022-10-21 (Fri, 21 Oct 2022)
Changed paths:
M mlir/examples/standalone/standalone-translate/standalone-translate.cpp
M mlir/include/mlir/Tools/mlir-translate/Translation.h
M mlir/lib/Target/Cpp/TranslateRegistration.cpp
M mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp
M mlir/lib/Target/LLVMIR/ConvertToLLVMIR.cpp
M mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
M mlir/lib/Target/SPIRV/TranslateRegistration.cpp
M mlir/lib/Tools/mlir-translate/Translation.cpp
A mlir/test/Target/LLVMIR/invalid-module.mlir
A mlir/test/Target/SPIRV/invalid-module.mlir
Log Message:
-----------
[mlir-translate] Support parsing operations other than 'builtin.module' as top-level
This adds a '--no-implicit-module' option, which disables the insertion
of a top-level 'builtin.module' during parsing.
The translation APIs are also updated to take/return 'Operation*'
instead of 'ModuleOp', to allow other operation types to be used. To
simplify translations which are restricted to specific operation types,
'TranslateFromMLIRRegistration' has an overload which performs the
necessary cast and error checking.
Reviewed By: rriddle
Differential Revision: https://reviews.llvm.org/D134237
More information about the All-commits
mailing list