diff options
author | rkayaith <rkayaith@gmail.com> | 2022-11-08 16:55:06 -0500 |
---|---|---|
committer | Rahul Kayaith <rkayaith@gmail.com> | 2023-03-01 18:17:12 -0500 |
commit | 37107e177e4a0a9ceab397f2667fe4dab98fb729 (patch) | |
tree | d9cd5c63e47e53398edfa08b5a56096d2293b0da /llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | |
parent | f5f8a46bb0ce3dd2f3e024696d5a0aef5fb12a29 (diff) | |
download | llvm-37107e177e4a0a9ceab397f2667fe4dab98fb729.zip llvm-37107e177e4a0a9ceab397f2667fe4dab98fb729.tar.gz llvm-37107e177e4a0a9ceab397f2667fe4dab98fb729.tar.bz2 |
[mlir][python] Add generic operation parse APIs
Currently the bindings only allow for parsing IR with a top-level
`builtin.module` op, since the parse APIs insert an implicit module op.
This change adds `Operation.parse`, which returns whatever top-level op
is actually in the source.
To simplify parsing of specific operations, `OpView.parse` is also
added, which handles the error checking for `OpView` subclasses.
Reviewed By: ftynse, stellaraccident
Differential Revision: https://reviews.llvm.org/D143352
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp')
0 files changed, 0 insertions, 0 deletions