-
Notifications
You must be signed in to change notification settings - Fork 13.4k
[llvm] Add option to emit callgraph
section
#87574
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
base: users/Prabhuk/sprmain.callsiteinfocallgraphsection-extend-callsiteinfo-with-typeid
Are you sure you want to change the base?
Conversation
Created using spr 1.3.6-beta.1
Add TypeId field to CallSiteInfo for tracking callee type id. Read the type id in and out by the MIR parser/printer. With this patch, TypeId is only set from callSites.typeId fields from MIR inputs. An upcoming patch will pass type ids from the clang front-end, and they will be read and set while lowering in the LLVM middle-end. Original RFC: https://lists.llvm.org/pipermail/llvm-dev/2021-June/151044.html Updated RFC: https://lists.llvm.org/pipermail/llvm-dev/2021-July/151739.html Reviewed By: morehouse Differential Revision: https://reviews.llvm.org/D107110?id=362890 Pull Request: llvm#87574
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
…pstream main. Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
I think we could probably do w/ a few more test cases.
There may be other cases we also want to check, but these three seem like a good start. I imagine they could be useful as you flesh out more features too. |
Created using spr 1.3.6-beta.1
callgraph
section
Created using spr 1.3.6-beta.1
Introducing `EnableCallGraphSection` target option. The cl::opt flag to enable this option is `--call-graph-section`. Adding TypeId field to CallSiteInfo for tracking callee type id. Read the type id in and out by the MIR parser/printer. TypeId is only set for callSites.typeId fields from MIR inputs. An upcoming patch will pass type ids from the clang front-end, and they will be read and set while lowering in the LLVM middle-end. Pull Request: llvm#87574
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
I've added new tests for 1 & 2. I don't understand the purpose of the third suggestion. |
llvm/test/CodeGen/MIR/X86/call-site-info-ambiguous-indirect-call-typeid.mir
Outdated
Show resolved
Hide resolved
llvm/test/CodeGen/MIR/X86/call-site-info-ambiguous-indirect-call-typeid.mir
Outdated
Show resolved
Hide resolved
Created using spr 1.3.6-beta.1
llvm/test/CodeGen/MIR/X86/call-site-info-ambiguous-indirect-call-typeid.mir
Outdated
Show resolved
Hide resolved
llvm/test/CodeGen/MIR/X86/call-site-info-ambiguous-indirect-call-typeid.mir
Show resolved
Hide resolved
llvm/test/CodeGen/MIR/X86/call-site-info-ambiguous-indirect-call-typeid.mir
Outdated
Show resolved
Hide resolved
Created using spr 1.3.6-beta.1
Introducing `EnableCallGraphSection` target option. The cl::opt flag to enable this option is `--call-graph-section`. Adding TypeId field to CallSiteInfo for tracking callee type id. Read the type id in and out by the MIR parser/printer. TypeId is only set for callSites.typeId fields from MIR inputs. An upcoming patch will pass type ids from the clang front-end, and they will be read and set while lowering in the LLVM middle-end. Pull Request: llvm#87574
Created using spr 1.3.6-beta.1
Introducing `EnableCallGraphSection` target option. The cl::opt flag to enable this option is `--call-graph-section`. Adding CalleeTypeIds field to CallSiteInfo to tracking callee type ids. Read the calle type ids in and out by the MIR parser/printer. CalleeTypeIds is only set for callSites.CalleeTypeIds fields from MIR inputs. An upcoming patch will pass type ids from the clang front-end. Pull Request: llvm#87574
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
a703c75
to
1a104c9
Compare
Created using spr 1.3.6-beta.1
Introducing
EnableCallGraphSection
target option. The cl::opt flag toenable this option is
--call-graph-section
.Adding CalleeTypeIds field to CallSiteInfo to tracking callee type ids.
Read the calle type ids in and out by the MIR parser/printer.
CalleeTypeIds is only set for callSites.CalleeTypeIds fields from MIR
inputs. An upcoming patch will pass type ids from the clang front-end.