5 Commits

Author SHA1 Message Date
Kyungwoo Lee
d4e8619ef1
[CGData] Fix assertions when skipping name (#151570)
This fixes assertion failures when using
`-indexed-codegen-data-read-function-map-names=false`
2025-07-31 11:46:02 -07:00
Zhaoxuan Jiang
713702109a
[CGData] Make an option to skip reading Names into StableFunctionMap (#142095)
Names are used for debugging purpose and have no impact on codegen. For
a non-trivial project, reading them consumes a lot of memory and slows
down the compilation significantly. This patch adds a field in the
indexed CGData to remember the total size of Names, and creates a
command-line option to skip reading Names by advancing the pointer when
deserializing the indexed CGData.
2025-06-10 07:33:40 -07:00
Kazu Hirata
f8e2e709f0
[CGData] Return ArrayRef<std::string> in getNames (NFC) (#140675)
All uses of getNames is read access to the list of names, so we can
just return ArrayRef<std::string>.  There is no need to make a copy as
we prepare a return value.

---------

Co-authored-by: Matt Arsenault <arsenm2@gmail.com>
2025-05-20 00:03:48 -07:00
Kazu Hirata
18ecff4f65
[llvm] Use llvm::stable_sort (NFC) (#140067) 2025-05-15 12:18:18 -07:00
Kyungwoo Lee
7ec26b23f2
[CGData] Stable Function Map (#112662)
These define the main data structures to represent stable functions and
group similar functions in a function map.
Serialization is supported in a binary or yaml form.

Depends on #112638.
This is a patch for
https://discourse.llvm.org/t/rfc-global-function-merging/82608.
2024-10-31 22:23:55 -07:00