Mircea Trofin
77a59c3210
[ctx_profile] Fix signed-ness in CtxInstrProfilingTest.cpp
...
Follow-up from `265953c`
2024-05-10 11:27:44 -07:00
Mircea Trofin
265953cc26
[ctx_profile] Arena should zero-initialize its allocation area.
2024-05-10 10:43:22 -07:00
Mircea Trofin
8755d24cb3
[compiler-rt][ctx_profile] Fix signed-ness warnings in test
...
Follow-up from PR ##89838. Some build bots warn-as-error
about signed/unsigned comparison in CtxInstrProfilingTest.
Example: https://lab.llvm.org/buildbot/#/builders/37/builds/34610
2024-05-07 23:27:54 -07:00
Mircea Trofin
ccf765cfd5
[compiler-rt][ctx_profile] Add the instrumented contextual profiling APIs ( #89838 )
...
APIs for contextual profiling. `ContextNode` is the call context-specific counter buffer. `ContextRoot` is associated to those functions that constitute roots into interesting call graphs, and is the object on which we hang off `Arena`s for allocating `ContextNode`s, as well as the `ContextNode` corresponding to such functions. Graphs of `ContextNode`s are accessible by one thread at a time.
(Tracking Issue: #89287 , more details in the RFC referenced there)
2024-05-07 15:01:15 -07:00
Mircea Trofin
a3e7a125e1
Reapply "[compiler-rt][ctx_instr] Add ctx_profile component" ( #89625 )
...
This reverts commit 8b2ba6a144e728ee4116e2804e9b5aed8824e726.
The uild errors (see below) were likely due to the same issue PR #88074 fixed. Addressed by following that PR.
https://lab.llvm.org/buildbot/#/builders/165/builds/52789
https://lab.llvm.org/buildbot/#/builders/91/builds/25273
2024-04-22 22:33:09 +02:00
Mircea Trofin
8b2ba6a144
Revert "[compiler-rt][ctx_instr] Add ctx_profile component" ( #89625 )
...
Reverts llvm/llvm-project#89304
Some build bot failures - will fix and reland.
Example: https://lab.llvm.org/buildbot/#/builders/165/builds/52789
2024-04-22 09:35:49 -07:00
Mircea Trofin
6ad22c879a
[compiler-rt][ctx_instr] Add ctx_profile component ( #89304 )
...
Add the component structure for contextual instrumented PGO and the bump allocator + test.
(Tracking Issue: #89287 , RFC referenced there)
2024-04-22 09:24:22 -07:00