[all-commits] [llvm/llvm-project] f539e0: [mlir] add option to print SSA IDs using `NameLoc`...

Maksim Levental via All-commits all-commits at lists.llvm.org
Tue Dec 17 07:59:32 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f539e00c702b4e5732d76e093c2d909fd8702683
      https://github.com/llvm/llvm-project/commit/f539e00c702b4e5732d76e093c2d909fd8702683
  Author: Maksim Levental <maksim.levental at gmail.com>
  Date:   2024-12-17 (Tue, 17 Dec 2024)

  Changed paths:
    M mlir/docs/PassManagement.md
    M mlir/include/mlir/IR/OperationSupport.h
    M mlir/lib/IR/AsmPrinter.cpp
    A mlir/test/IR/print-use-nameloc-as-prefix.mlir

  Log Message:
  -----------
  [mlir] add option to print SSA IDs using `NameLoc`s as prefixes (#119996)

This PR adds an `AsmPrinter` option `-mlir-use-nameloc-as-prefix` which
uses trailing `NameLoc`s, if the source IR provides them, as prefixes
when printing SSA IDs.



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