[all-commits] [llvm/llvm-project] c3a6e7: [mlir] Expose operation attributes to Python bindings
ftynse via All-commits
all-commits at lists.llvm.org
Mon Nov 9 06:00:19 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: c3a6e7c9b7474f7977b77d38a1de13f27c785e5c
https://github.com/llvm/llvm-project/commit/c3a6e7c9b7474f7977b77d38a1de13f27c785e5c
Author: Alex Zinenko <zinenko at google.com>
Date: 2020-11-09 (Mon, 09 Nov 2020)
Changed paths:
M mlir/lib/Bindings/Python/IRModules.cpp
M mlir/test/Bindings/Python/ir_operation.py
Log Message:
-----------
[mlir] Expose operation attributes to Python bindings
Operations in a MLIR have a dictionary of attributes attached. Expose
those to Python bindings through a pseudo-container that can be indexed
either by attribute name, producing a PyAttribute, or by a contiguous
index for enumeration purposes, producing a PyNamedAttribute.
Depends On D90917
Reviewed By: stellaraccident
Differential Revision: https://reviews.llvm.org/D90919
More information about the All-commits
mailing list