Issue 128416
Summary How to export basic block symbols in LLVM 14 and later versions?
Labels new issue
Assignees
Reporter EricWang1358
    ---

### 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!

---

_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to