[all-commits] [llvm/llvm-project] 569ec1: [llvm-cxxfilt] Added the option --no-params (#75348)

Dmitry Vasilyev via All-commits all-commits at lists.llvm.org
Thu Jan 4 08:43:37 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 569ec185f5dc4a9e4a239948191977ecc2b2b475
      https://github.com/llvm/llvm-project/commit/569ec185f5dc4a9e4a239948191977ecc2b2b475
  Author: Dmitry Vasilyev <dvassiliev at accesssoftek.com>
  Date:   2024-01-04 (Thu, 04 Jan 2024)

  Changed paths:
    M libcxxabi/src/demangle/ItaniumDemangle.h
    M llvm/docs/CommandGuide/llvm-cxxfilt.rst
    M llvm/include/llvm/Demangle/Demangle.h
    M llvm/include/llvm/Demangle/ItaniumDemangle.h
    M llvm/lib/Demangle/Demangle.cpp
    M llvm/lib/Demangle/ItaniumDemangle.cpp
    A llvm/test/tools/llvm-cxxfilt/no-params.test
    M llvm/tools/llvm-cxxfilt/Opts.td
    M llvm/tools/llvm-cxxfilt/llvm-cxxfilt.cpp

  Log Message:
  -----------
  [llvm-cxxfilt] Added the option --no-params (#75348)

Added -p / --no-params flag to skip demangling function parameters
similar to how it is supported by GNU c++filt tool.

There are cases when users want to demangle a large number of symbols in
bulk, for example, at startup, and do not care about function parameters
and overloads at that time. Skipping the demangling of parameter types
led to a measurable improvement in performance. Our users reported about
15% speed up with GNU c++filt and we expect similar results with
llvm-cxxfilt with this patch.




More information about the All-commits mailing list