diff options
author | rkayaith <rkayaith@gmail.com> | 2022-09-27 21:31:16 -0400 |
---|---|---|
committer | rkayaith <rkayaith@gmail.com> | 2022-10-21 15:54:06 -0400 |
commit | ed90f8026e45b9f922002ad03c6f37c4881be1d8 (patch) | |
tree | e0d0eeba50b072b11ef245425b4a0369e3780407 /llvm/lib/CodeGen/CodeGen.cpp | |
parent | 86723787474e7d10e9267bc82e94bb034ed4ec95 (diff) | |
download | llvm-ed90f8026e45b9f922002ad03c6f37c4881be1d8.zip llvm-ed90f8026e45b9f922002ad03c6f37c4881be1d8.tar.gz llvm-ed90f8026e45b9f922002ad03c6f37c4881be1d8.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
0 files changed, 0 insertions, 0 deletions