Symbol tables are a largely useful top-level IR construct, for example, they
make it easy to access functions in a module by name instead of traversing the
list of module's operations to find the corresponding function.
Depends On D112886
Paths
| Differential D112821
[mlir] provide C API and Python bindings for symbol tables ClosedPublic Authored by ftynse on Oct 29 2021, 7:55 AM.
Details Summary Symbol tables are a largely useful top-level IR construct, for example, they Depends On D112886
Diff Detail
Event TimelineHerald added subscribers: wenzhicui, wrengr, Chia-hungDuan and 20 others. · View Herald TranscriptOct 29 2021, 7:55 AM
ftynse marked 2 inline comments as done. Comment ActionsAddress review.
mehdi_amini added inline comments.
This revision is now accepted and ready to land.Oct 30 2021, 12:12 PM ftynse added a parent revision: D112886: [mlir] return the updated symbol table after inserting into SymbolTable. ftynse removed a parent revision: D112700: [mlir][python] allow for detaching operations from a block. ftynse marked 2 inline comments as done. This revision was landed with ongoing or failed builds.Nov 2 2021, 6:23 AM Closed by commit rG30d61893fb7b: [mlir] provide C API and Python bindings for symbol tables (authored by ftynse). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 384060 mlir/include/mlir-c/IR.h
mlir/include/mlir-c/Support.h
mlir/include/mlir/CAPI/IR.h
mlir/lib/Bindings/Python/IRCore.cpp
mlir/lib/Bindings/Python/IRModule.h
mlir/lib/CAPI/IR/IR.cpp
mlir/lib/CAPI/IR/Support.cpp
mlir/test/CAPI/ir.c
mlir/test/python/ir/operation.py
|
Why don't we return a MlirStringRef with the new name to match the C++ API?