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 a7d5ca3 commit 446380aCopy full SHA for 446380a
mlir/lib/Bindings/Python/IRCore.cpp
@@ -2730,7 +2730,8 @@ class PyOpAttributeMap {
2730
operation->get(), toMlirStringRef(name)));
2731
}
2732
2733
- void forEachAttr(llvm::function_ref<void(MlirStringRef, MlirAttribute)> fn) {
+ static void
2734
+ forEachAttr(llvm::function_ref<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