In instrumentation-based profiling, we need a set of data structures to
represent the counters.  Previously, these were built up during static
initialization.  This patch shoves them into a specially-named section
so that they link together into an array.

As a consequence of the reorganizing symbols, instrumentation data
structures for linkonce functions are now correctly coalesced.

This is the first step in making instrumentation-based profiling stop
relying on the userspace.

I’ve included both the clang patch and the associated compiler-rt patch
here, since it’s not clear to me how to review one without the other.

Attachment: pgo-static-data-structures-clang.patch
Description: Binary data

Attachment: pgo-static-data-structures-compiler-rt.patch
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to