Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CGData][lld-macho] Merge CG Data by LLD #112674

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kyulee-com
Copy link
Contributor

@kyulee-com kyulee-com commented Oct 17, 2024

LLD now processes raw CG data for stable functions, similar to how it handles raw CG data for the outliner's hash tree. This data is encoded in the custom section (__llvm_merge) within object files. LLD merges this information into the indexed CG data file specified by the -codegen-data-generate-path={path} option. For the linker that does not support this feature, we could use llvm-cgdata tool -- https://github.com/llvm/llvm-project/blob/main/llvm/docs/CommandGuide/llvm-cgdata.rst.

Depends on #115750.
This is a patch for https://discourse.llvm.org/t/rfc-global-function-merging/82608.

@kyulee-com kyulee-com force-pushed the users/kyulee-com/globmerge branch 2 times, most recently from 3194154 to e86d78b Compare November 5, 2024 05:11
Base automatically changed from users/kyulee-com/globmerge to main November 14, 2024 01:34
@kyulee-com kyulee-com changed the title [CGData][lld-macho] Add Global Merge Func Pass [CGData][lld-macho] Merge CG Data by LLD Nov 15, 2024
@kyulee-com
Copy link
Contributor Author

cc. @nocchijiang

@kyulee-com kyulee-com marked this pull request as ready for review November 15, 2024 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant