Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[llvm][AsmPrinter] Emit call graph section #87576

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

Open
wants to merge 44 commits into
base: users/Prabhuk/sprmain.asmprintercallgraphsection-emit-call-graph-section-4
Choose a base branch
Loading
from
Open
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
d163d80
[𝘀𝗽𝗿] initial version
necipfazil Apr 3, 2024
dd26405
Updated fixme on PR 87570
necipfazil Apr 22, 2024
b5b03fd
Rebased on top of main
necipfazil Apr 24, 2024
b90a4d5
dyn_cast to isa
necipfazil Apr 29, 2024
332f2aa
Rebased on upstream main.
necipfazil May 1, 2024
1209081
Rebase patchset
necipfazil Nov 14, 2024
1981340
Update inline comment as suggested.
necipfazil Nov 14, 2024
423d5f2
Addressed review comments.
necipfazil Nov 19, 2024
e51ce07
Rebase on top of upstream main.
necipfazil Nov 20, 2024
e4684b8
Break clang and llvm parts into separate commits.
necipfazil Nov 20, 2024
7f15e6b
Reorder commits.
necipfazil Dec 10, 2024
3fad066
Rebase on top of main.
necipfazil Feb 2, 2025
1fd9775
Rename OB_type to OB_callee_type.
necipfazil Feb 5, 2025
2f763c0
Rebase on top of main
necipfazil Feb 11, 2025
5e6675b
Update IR verifier.
necipfazil Feb 11, 2025
39e5b93
Add requested tests part 1.
necipfazil Mar 13, 2025
f18f492
Update comments in tests.
necipfazil Mar 13, 2025
6b67376
Updated the test as reviewers suggested.
necipfazil Mar 13, 2025
d2bb381
Scoped enum. Simplify test.
necipfazil Mar 13, 2025
e3c95b5
Remove unnecessary cast.
necipfazil Mar 13, 2025
835c2e2
Remove unnecessary asserts. Remove autos for better readability.
necipfazil Mar 13, 2025
678008e
Reorder IR metadata and rename temporary var names in test.
necipfazil Mar 13, 2025
5831ed4
Add RISC-V support. Clean up test files.
necipfazil Mar 14, 2025
77ce9ab
Clean up test files.
necipfazil Mar 15, 2025
7d8418c
Address code refactoring comments.
necipfazil Mar 19, 2025
19043db
Use CalleeTypeIds list to emit callgraph section.
necipfazil Apr 19, 2025
0754d49
Address review comments.
necipfazil Apr 19, 2025
cf2e510
Extract callsite label emission as a private method.
necipfazil Apr 23, 2025
80df0c0
Address review comments.
necipfazil Apr 23, 2025
20679e7
Address review comments.
necipfazil Apr 23, 2025
48e878c
Address review comments.
necipfazil Apr 24, 2025
aeaa155
Separate the assembly test for callgraph section and related labels i…
necipfazil Apr 24, 2025
f248de4
Rebase on parent.
necipfazil Apr 24, 2025
516dee0
Add llvm-mc test. Address comments.
necipfazil Apr 28, 2025
b45026e
Update test inline comments.
necipfazil Apr 29, 2025
106364f
Rebase on parent.
necipfazil May 1, 2025
9a561db
Rebase on parent.
necipfazil May 5, 2025
5778238
Rebase on parent change.
necipfazil May 10, 2025
caae8ac
Remove dso_local and noundef from tests.
necipfazil May 13, 2025
dcf4495
Rebase on parent.
necipfazil May 13, 2025
9d25b19
Rebase on parent
necipfazil May 14, 2025
837e254
Rebase on main.
necipfazil May 14, 2025
65a4435
Drop local_unnamed_addr.
necipfazil May 27, 2025
e1e3fd1
Rebase change.
necipfazil May 27, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Rebase on top of upstream main.
Created using spr 1.3.6-beta.1
  • Loading branch information
necipfazil authored and Prabhuk committed Nov 20, 2024
commit e51ce07a9eaad82c48b6ddb2a5bbbacfdd9bde8d
8 changes: 7 additions & 1 deletion 8 llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1898,6 +1898,12 @@ void AsmPrinter::emitFunctionBody() {
STI = TM.getMCSubtargetInfo();

bool CanDoExtraAnalysis = ORE->allowExtraAnalysis(DEBUG_TYPE);
// Create a slot for the entry basic block section so that the section
// order is preserved when iterating over MBBSectionRanges.
if (!MF->empty())
MBBSectionRanges[MF->front().getSectionID()] =
MBBSectionRange{CurrentFnBegin, nullptr};

FunctionInfo FuncInfo;
const auto &CallSitesInfoMap = MF->getCallSitesInfo();
for (auto &MBB : *MF) {
Expand Down Expand Up @@ -2816,7 +2822,7 @@ void AsmPrinter::SetupMachineFunction(MachineFunction &MF) {
needFuncLabels(MF, *this) || NeedsLocalForSize ||
MF.getTarget().Options.EmitStackSizeSection ||
MF.getTarget().Options.EmitCallGraphSection ||
MF.getTarget().Options.BBAddrMap || MF.hasBBLabels()) {
MF.getTarget().Options.BBAddrMap) {
CurrentFnBegin = createTempSymbol("func_begin");
if (NeedsLocalForSize)
CurrentFnSymForSize = CurrentFnBegin;
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.