diff options
author | rkayaith <rkayaith@gmail.com> | 2022-09-27 21:09:34 -0400 |
---|---|---|
committer | rkayaith <rkayaith@gmail.com> | 2022-09-27 21:13:47 -0400 |
commit | 4b27825ba36d55779561c0a2c3c2f89f52d81303 (patch) | |
tree | c2f2c3c4d77ca456c044bd269a9cbff659a37b48 /clang-tools-extra/clang-doc/BitcodeReader.cpp | |
parent | 7e22179d38c438fedb0d9bb0cff1585843bd7082 (diff) | |
download | llvm-4b27825ba36d55779561c0a2c3c2f89f52d81303.zip llvm-4b27825ba36d55779561c0a2c3c2f89f52d81303.tar.gz llvm-4b27825ba36d55779561c0a2c3c2f89f52d81303.tar.bz2 |
[mlir-opt] 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. In this mode any op may
be top-level, however it's required that there be exactly one top-level
op in the source.
`parseSource{File,String}` now support `Operation *` as the container op
type, which disables the top-level-op-insertion behaviour.
Following patches will add the same option to the other tools as well.
Depends on D133644
Reviewed By: rriddle
Differential Revision: https://reviews.llvm.org/D133645
Diffstat (limited to 'clang-tools-extra/clang-doc/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions