[all-commits] [llvm/llvm-project] 9c7ba5: [mlir] Allow `Attribute::print` to elide the type

Jeff Niu via All-commits all-commits at lists.llvm.org
Wed Sep 14 18:17:48 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9c7ba57e7039c4408b273404c61cc0b93f4368fd
      https://github.com/llvm/llvm-project/commit/9c7ba57e7039c4408b273404c61cc0b93f4368fd
  Author: Jeff Niu <jeff at modular.com>
  Date:   2022-09-14 (Wed, 14 Sep 2022)

  Changed paths:
    M mlir/include/mlir/IR/Attributes.h
    M mlir/lib/IR/AsmPrinter.cpp

  Log Message:
  -----------
  [mlir] Allow `Attribute::print` to elide the type

This patch adds a flag to `Attribute::print` that prints the attribute
without its type.

Fixes #57689

Reviewed By: rriddle, lattner

Differential Revision: https://reviews.llvm.org/D133822




More information about the All-commits mailing list