Details
- Reviewers
kristof.beyls efriedma nickdesaulniers
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 35413 Build 35412: arc lint + arc unit
Event Timeline
What a horrible function. AAPCS? Who cares about that?
llvm/lib/Target/ARM/CMakeLists.txt | ||
---|---|---|
54 | This filename is too generic. It handles a single GNU-specific profiling function. | |
llvm/lib/Target/ARM/CustomCallLoweringPass.cpp | ||
1 | This needs a comment header, with the usual licensing info and a brief description of what this pass does. | |
33 | Can this be initialized from the call instruction? | |
45 | What happens if a function calling the counter gets inlined? For pure stack correctness you probably need to ensure all calls to mcount get a push before them; the counts may be screwy but that's probably better than a segfault. |
Thanks for the comments. I think I accidentally created two redundant code reviews. Please take a look at https://reviews.llvm.org/D65019. There has already been suggestion for a more formal solution by introducing an ARM intinriscs that hopefully should address these concerns.
A front test of mcount was broken since we renamed gnu_mcount_nc to an intrinsic. Needs to fix the test before reapplying the changes.
This filename is too generic. It handles a single GNU-specific profiling function.