summaryrefslogtreecommitdiff
path: root/lib/profile/InstrProfilingPlatformDarwin.c
AgeCommit message (Collapse)Author
2016-05-22[profile] initialize static pool properly Xinliang David Li
Remove dependency on runtime initializer to avoid issues related to initialization order. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@270371 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-21Fix a typo (darwin only)Xinliang David Li
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@270339 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-21Fix typoXinliang David Li
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@270338 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-21[profile] Static counter allocation for value profiling (part-2)Xinliang David Li
Differential Revision: http://reviews.llvm.org/D20460 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@270337 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-16[PGO] cleanup: unify prefix for portability macrosXinliang David Li
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@255748 91177308-0d34-0410-b5e6-96231b3b80d8
2015-11-23[PGO] Unify section name, section symbol definitions (Darwin)Xinliang David Li
Replace hard-coded references to names to key section and section symbols with common macro definitions. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@253907 91177308-0d34-0410-b5e6-96231b3b80d8
2015-11-23[PGO] Compiler-rt cleanup -- introduces macros for various macrosXinliang David Li
This makes code more readable and be made more portable in the future. There is no functional change. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@253845 91177308-0d34-0410-b5e6-96231b3b80d8
2014-09-04profile: Avoid name collisions between instrumentation and runtimeJustin Bogner
The naming scheme we're using for counters in profile data shares a prefix with some fixed names we use for the runtime, notably __llvm_profile_data_begin and _end. Embarrassingly, this means a function called begin() can't be instrumented. This modifies the runtime names so as not to collide with the instrumentation. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@217166 91177308-0d34-0410-b5e6-96231b3b80d8
2014-05-16InstrProf: Fix shared object profilingDuncan P. N. Exon Smith
Change the API of the instrumented profiling library to work with shared objects. - Most things are now declared hidden, so that each executable gets its own copy. - Initialization hooks up a linked list of writers. - The raw format with shared objects that are profiled consists of a concatenated series of profiles. llvm-profdata knows how to deal with that since r208938. <rdar://problem/16918688> git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208940 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-22[profile] Flatten profile runtime - define platform-specific code in ↵Alexey Samsonov
sources, not in the build system git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206915 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-21InstrProf: Reorganize files; no functionality changeDuncan P. N. Exon Smith
Move functions around to prepare for some other changes. - Merge InstrProfilingExtras.h with InstrProfiling.h. There's no benefit to having these split. - Rename InstrProfilingExtras.c to InstrProfilingFile.c. - Split actual buffer writing code out of InstrProfiling.c into InstrProfilingBuffer.c. - Drive-by corrections of a couple of header comments. <rdar://problem/15943240> git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204497 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-20PGO: Declare zero-argument C functions as foo(void)Duncan P. N. Exon Smith
It turns out this is C code. Specify foo(void). <rdar://problem/15943240> git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204396 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-20PGO: Change runtime prefix from pgo to profileDuncan P. N. Exon Smith
These functions are in the profile runtime. PGO comes later. Unfortunately, there's only room for 16 characters in a Darwin section, so use __llvm_prf_ instead of __llvm_profile_ for section names. <rdar://problem/15943240> git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204391 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-20PGO: Add function to reset counters at runtimeDuncan P. N. Exon Smith
Adding __llvm_pgo_reset_counters(), which sets all the counters to 0. <rdar://problem/15943240> git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204386 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-20PGO: Moving files for clarityDuncan P. N. Exon Smith
<rdar://problem/15943240> git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204373 91177308-0d34-0410-b5e6-96231b3b80d8