[Support] Move ItaniumManglingCanonicalizer and SymbolRemappingReader from Support...
commit6c8fe96582362ebff9f466dcf8a8d76b06641de2
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 6 Feb 2023 20:55:24 +0000 (6 20:55 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 6 Feb 2023 20:55:48 +0000 (6 20:55 +0000)
tree46cb3aa21cba93463cefa0fcbdc98a9f636db631
parent6ab9f1e59371fe96ca3fda1a26a28ae0b7caf637
[Support] Move ItaniumManglingCanonicalizer and SymbolRemappingReader from Support to ProfileData

As mentioned on https://discourse.llvm.org/t/issues-in-llvm-tblgen-high-parallelized-build/68037, ItaniumManglingCanonicalizer is often slow to build, resulting in a bottleneck for distributed builds while waiting for LLVMSupport to complete.

SymbolRemappingReader is the only current user of ItaniumManglingCanonicalizer, and this is only used by ProfileData and llvm-cxxmap - so I propose we move both files into the ProfileData library.

Differential Revision: https://reviews.llvm.org/D143318
21 files changed:
clang/docs/tools/clang-formatted-files.txt
llvm/include/llvm/ProfileData/ItaniumManglingCanonicalizer.h [moved from llvm/include/llvm/Support/ItaniumManglingCanonicalizer.h with 94% similarity]
llvm/include/llvm/ProfileData/SampleProfReader.h
llvm/include/llvm/ProfileData/SymbolRemappingReader.h [moved from llvm/include/llvm/Support/SymbolRemappingReader.h with 95% similarity]
llvm/lib/ProfileData/CMakeLists.txt
llvm/lib/ProfileData/InstrProfReader.cpp
llvm/lib/ProfileData/ItaniumManglingCanonicalizer.cpp [moved from llvm/lib/Support/ItaniumManglingCanonicalizer.cpp with 99% similarity]
llvm/lib/ProfileData/SymbolRemappingReader.cpp [moved from llvm/lib/Support/SymbolRemappingReader.cpp with 98% similarity]
llvm/lib/Support/CMakeLists.txt
llvm/tools/llvm-cxxmap/CMakeLists.txt
llvm/tools/llvm-cxxmap/llvm-cxxmap.cpp
llvm/unittests/ProfileData/CMakeLists.txt
llvm/unittests/ProfileData/ItaniumManglingCanonicalizerTest.cpp [moved from llvm/unittests/Support/ItaniumManglingCanonicalizerTest.cpp with 99% similarity]
llvm/unittests/ProfileData/SymbolRemappingReaderTest.cpp [moved from llvm/unittests/Support/SymbolRemappingReaderTest.cpp with 98% similarity]
llvm/unittests/Support/CMakeLists.txt
llvm/utils/gn/secondary/llvm/lib/ProfileData/BUILD.gn
llvm/utils/gn/secondary/llvm/lib/Support/BUILD.gn
llvm/utils/gn/secondary/llvm/tools/llvm-cxxmap/BUILD.gn
llvm/utils/gn/secondary/llvm/unittests/ProfileData/BUILD.gn
llvm/utils/gn/secondary/llvm/unittests/Support/BUILD.gn
utils/bazel/llvm-project-overlay/llvm/BUILD.bazel