[all-commits] [llvm/llvm-project] d58244: [llvm-cxxfilt] Add --quote option to quote demangl...

Ronan Keryell via All-commits all-commits at lists.llvm.org
Mon Oct 21 00:54:26 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d582442becf1507a243614ee7348ccbb51eade28
      https://github.com/llvm/llvm-project/commit/d582442becf1507a243614ee7348ccbb51eade28
  Author: Ronan Keryell <ronan.keryell at amd.com>
  Date:   2024-10-21 (Mon, 21 Oct 2024)

  Changed paths:
    M llvm/docs/CommandGuide/llvm-cxxfilt.rst
    A llvm/test/tools/llvm-cxxfilt/quote.test
    M llvm/tools/llvm-cxxfilt/Opts.td
    M llvm/tools/llvm-cxxfilt/llvm-cxxfilt.cpp

  Log Message:
  -----------
  [llvm-cxxfilt] Add --quote option to quote demangled function names (#111871)

This is useful when looking at LLVM/MLIR assembly produced from C++
sources. For example
 cir.call @_ZN3aie4tileILi1ELi4EE7programIZ4mainE3$_0EEvOT_(%2, %7) :
will be translated to
cir.call @"void aie::tile<1, 4>::program<main::$_0>(main::$_0&&)"(%2,
%7) : which can be parsed as valid MLIR by the right mlir-lsp-server.

If a symbol is already quoted, do not quote it more.

---------

Co-authored-by: James Henderson <jh7370 at my.bristol.ac.uk>



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