[all-commits] [llvm/llvm-project] feec2d: [mlir] return the updated symbol table after inser...
ftynse via All-commits
all-commits at lists.llvm.org
Tue Nov 2 06:23:14 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: feec2d901c17a08c358fa379e722cbe84248ed02
https://github.com/llvm/llvm-project/commit/feec2d901c17a08c358fa379e722cbe84248ed02
Author: Alex Zinenko <zinenko at google.com>
Date: 2021-11-02 (Tue, 02 Nov 2021)
Changed paths:
M mlir/include/mlir/IR/SymbolTable.h
M mlir/lib/IR/SymbolTable.cpp
Log Message:
-----------
[mlir] return the updated symbol table after inserting into SymbolTable
Inserting a symbol into a SymbolTable may lead to the name of the symbol being
changed in order to ensure uniqueness of symbol names in the table. Return this
new name to spare the caller the need to extract it from the symbol operation.
Depends On D112700
Reviewed By: mehdi_amini
Differential Revision: https://reviews.llvm.org/D112886
Commit: 30d61893fb7bbe364bf25074feaf0b178dac64e6
https://github.com/llvm/llvm-project/commit/30d61893fb7bbe364bf25074feaf0b178dac64e6
Author: Alex Zinenko <zinenko at google.com>
Date: 2021-11-02 (Tue, 02 Nov 2021)
Changed paths:
M mlir/include/mlir-c/IR.h
M mlir/include/mlir-c/Support.h
M mlir/include/mlir/CAPI/IR.h
M mlir/lib/Bindings/Python/IRCore.cpp
M mlir/lib/Bindings/Python/IRModule.h
M mlir/lib/CAPI/IR/IR.cpp
M mlir/lib/CAPI/IR/Support.cpp
M mlir/test/CAPI/ir.c
M mlir/test/python/ir/operation.py
Log Message:
-----------
[mlir] provide C API and Python bindings for symbol tables
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
Reviewed By: mehdi_amini
Differential Revision: https://reviews.llvm.org/D112821
Compare: https://github.com/llvm/llvm-project/compare/a39eadcf1609...30d61893fb7b
More information about the All-commits
mailing list