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 5c0753d commit a7d5ca3Copy full SHA for a7d5ca3
mlir/lib/Bindings/Python/IRCore.cpp
@@ -2730,8 +2730,7 @@ class PyOpAttributeMap {
2730
operation->get(), toMlirStringRef(name)));
2731
}
2732
2733
- void
2734
- forEachAttr(const std::function<void(MlirStringRef, MlirAttribute)> &fn) {
+ void 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