[all-commits] [llvm/llvm-project] 587081: [mlir][docs] Guide on generating alias for type/at...

Hongren Zheng via All-commits all-commits at lists.llvm.org
Mon Jan 13 18:19:36 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 58708151ecaab8786c58b20eefc548dbdb23c8cc
      https://github.com/llvm/llvm-project/commit/58708151ecaab8786c58b20eefc548dbdb23c8cc
  Author: Hongren Zheng <i at zenithal.me>
  Date:   2025-01-14 (Tue, 14 Jan 2025)

  Changed paths:
    A mlir/docs/DefiningDialects/Assembly.md

  Log Message:
  -----------
  [mlir][docs] Guide on generating alias for type/attribute (#121698)

This is part of
https://discourse.llvm.org/t/rfc-introduce-opasm-type-attr-interface-for-pretty-print-in-asmprinter/83792.

Verbose printing of commonly used type/attribute that is long could
severely reduce the readablity of the resulting assembly, and it has
been asked several times in the LLVM discourse how to generate alias.

Cc @ftynse

### Discussion

* I am not sure where to put the markdown, so I put it in `mlir/docs/`.
* Documentation on `OpAsmOpInterface` (controlling
`AsmResultName`/`BlockArgName`/etc) could also be added in this
markdown, so I used the title `Customizing AsmPrinter Behavior` and let
further PR to update the content.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list