[Mlir-commits] [mlir] Enable printing newlines and indents in attribute and type printers (PR #87948)

Jacenty Andruszkiewicz llvmlistbot at llvm.org
Wed Apr 24 13:22:27 PDT 2024


Jacenty-And-Intel wrote:

Here is an example when attribute with nesting is attached to an operation: 
```
Dialect.Op() {attribute_0 = (...), attributeWithNesting = #Dialect.Attribute<
  !Dialect.Type<
    name(...) nestedAttributes([
      #Dialect.FirstNestedAttribute<
        !Dialect.FirstNestedType<
          name(...) nestedAttributes([
            #Dialect.SecondNestedAttribute<
              !Dialect.SecondNestedType<
                name(...) value1(...) value2(...)
              >
            >
          ])
        >
      >
    ])
  >
>, attribute_1 = (...), attribute_2 = (...)}
```

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


More information about the Mlir-commits mailing list