[all-commits] [llvm/llvm-project] aa16ca: [mlir] Add getAlias for OpAsmTypeInterface (#126364)

Hongren Zheng via All-commits all-commits at lists.llvm.org
Tue Feb 18 10:29:12 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: aa16ca3422d6ed4847bffb469cc5a1db14dca0b3
      https://github.com/llvm/llvm-project/commit/aa16ca3422d6ed4847bffb469cc5a1db14dca0b3
  Author: Hongren Zheng <i at zenithal.me>
  Date:   2025-02-19 (Wed, 19 Feb 2025)

  Changed paths:
    M mlir/include/mlir/IR/OpAsmInterface.td
    M mlir/lib/IR/AsmPrinter.cpp
    M mlir/test/IR/op-asm-interface.mlir
    M mlir/test/lib/Dialect/Test/TestTypeDefs.td
    M mlir/test/lib/Dialect/Test/TestTypes.cpp

  Log Message:
  -----------
  [mlir] Add getAlias for OpAsmTypeInterface (#126364)

See
https://discourse.llvm.org/t/rfc-introduce-opasm-type-attr-interface-for-pretty-print-in-asmprinter/83792
for detailed introduction.

This PR should be rebased once #124721 is merged.

This PR adds

* Definition of `getAlias` for `OpAsmTypeInterface`
* Integration of `OpAsmTypeInterface` with `AsmPrinter` alias handling
part

This is partly in response to
https://github.com/llvm/llvm-project/pull/124721/files#r1940399862

Cc @River707 for review.



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