aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
diff options
context:
space:
mode:
authorrkayaith <rkayaith@gmail.com>2022-11-08 16:55:06 -0500
committerRahul Kayaith <rkayaith@gmail.com>2023-03-01 18:17:12 -0500
commit37107e177e4a0a9ceab397f2667fe4dab98fb729 (patch)
treed9cd5c63e47e53398edfa08b5a56096d2293b0da /llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
parentf5f8a46bb0ce3dd2f3e024696d5a0aef5fb12a29 (diff)
downloadllvm-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