[all-commits] [llvm/llvm-project] 9fb108: [mlir][python] Add a __contains__ method to the py...
Adrian Kuegel via All-commits
all-commits at lists.llvm.org
Fri Oct 29 06:19:39 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9fb1086b94f06982e80dcfd985db911bf94599be
https://github.com/llvm/llvm-project/commit/9fb1086b94f06982e80dcfd985db911bf94599be
Author: Adrian Kuegel <akuegel at google.com>
Date: 2021-10-29 (Fri, 29 Oct 2021)
Changed paths:
M mlir/lib/Bindings/Python/IRAttributes.cpp
M mlir/test/python/ir/attributes.py
Log Message:
-----------
[mlir][python] Add a __contains__ method to the python bindings for DictionaryAttr.
This makes it easier to check in python whether a certain attribute is there.
Differential Revision: https://reviews.llvm.org/D112814
More information about the All-commits
mailing list