We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 827870e commit 5c0753dCopy full SHA for 5c0753d
mlir/lib/Bindings/Python/IRCore.cpp
@@ -2730,8 +2730,8 @@ class PyOpAttributeMap {
2730
operation->get(), toMlirStringRef(name)));
2731
}
2732
2733
- template <typename F>
2734
- auto forEachAttr(F fn) {
+ void
+ forEachAttr(const std::function<void(MlirStringRef, MlirAttribute)> &fn) {
2735
intptr_t n = mlirOperationGetNumAttributes(operation->get());
2736
for (intptr_t i = 0; i < n; ++i) {
2737
MlirNamedAttribute na = mlirOperationGetAttribute(operation->get(), i);
0 commit comments