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

How to export basic block symbols in LLVM 14 and later versions? #128416

Open
EricWang1358 opened this issue Feb 23, 2025 · 0 comments
Open

How to export basic block symbols in LLVM 14 and later versions? #128416

EricWang1358 opened this issue Feb 23, 2025 · 0 comments
Labels
llvm Umbrella label for LLVM issues question A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

Comments

@EricWang1358
Copy link


Issue Title:

How to export basic block symbols in LLVM 14 and later versions? Is there a feature like -gsplit-dwarf for this?

Issue Content:

Hello LLVM Team,

I am an undergraduate student and now working on a project that requires exporting basic block symbol information from the program for later perf use. In earlier versions of LLVM, I saw solutions like customing patches to achieve this. With the introduction of the -gsplit-dwarf option in LLVM 14, I would like to know if there is now a built-in way to export basic block symbols.

I have the following questions and would greatly appreciate any guidance:

  1. Does LLVM 14 or later support exporting basic block symbols through command-line options?

    • In earlier versions, I had to modify the source code to insert these symbols. Is there now a standard option (such as -gsplit-dwarf) to directly generate basic block symbols?
  2. If such a feature is not directly supported, is there an alternative method to export basic block symbols without modifying the source code?

  3. Are there any detailed documentation or example codes?

Thank you for your assistance, and I look forward to your response!


@EugeneZelenko EugeneZelenko added question A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead! llvm Umbrella label for LLVM issues and removed new issue labels Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
llvm Umbrella label for LLVM issues question A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!
Projects
None yet
Development

No branches or pull requests

3 participants