[Mlir-commits] [mlir] [mlir] Add the ability to override attribute parsing/printing in attr-dicts (PR #103304)

Benjamin Maxwell llvmlistbot at llvm.org
Wed Aug 14 08:01:37 PDT 2024


================
@@ -2729,6 +2737,10 @@ void AsmPrinter::Impl::printNamedAttribute(NamedAttribute attr) {
     return;
 
   os << " = ";
+  if (printNamedAttrFn && succeeded(printNamedAttrFn(attr))) {
+    /// If we print via the `printNamedAttrFn` callback skip printing.
----------------
MacDue wrote:

Updated comment.

https://github.com/llvm/llvm-project/pull/103304


More information about the Mlir-commits mailing list