Go to file
Justin Bogner 61ba2e3996 InstrProf: An intrinsic and lowering for instrumentation based profiling
Introduce the ``llvm.instrprof_increment`` intrinsic and the
``-instrprof`` pass. These provide the infrastructure for writing
counters for profiling, as in clang's ``-fprofile-instr-generate``.

The implementation of the instrprof pass is ported directly out of the
CodeGenPGO classes in clang, and with the followup in clang that rips
that code out to use these new intrinsics this ends up being NFC.

Doing the instrumentation this way opens some doors in terms of
improving the counter performance. For example, this will make it
simple to experiment with alternate lowering strategies, and allows us
to try handling profiling specially in some optimizations if we want
to.

Finally, this drastically simplifies the frontend and puts all of the
lowering logic in one place.

llvm-svn: 223672
2014-12-08 18:02:35 +00:00
clang clang-format: Support commas in lambda return types. 2014-12-08 13:22:37 +00:00
clang-tools-extra [clang-tidy] google-runtime-int: Don't check C code. 2014-12-08 11:17:25 +00:00
compiler-rt [msan] Intercept wcsto*. 2014-12-08 10:41:28 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Don't include <stddef.h> 2014-11-18 14:19:27 +00:00
libcxx Explicitly include <sched.h> for sched_yield() 2014-12-08 14:50:21 +00:00
libcxxabi Fix comment on end of #endif to match #if 2014-11-25 03:19:02 +00:00
lld [mach-o] fix leak in atoms -> normalized 2014-12-05 22:03:28 +00:00
lldb The lldb unwinder can now use the unwind information from the compact-unwind 2014-12-08 03:09:00 +00:00
llgo Roll gofrontend to 2a85649c19e1. 2014-12-04 20:39:58 +00:00
llvm InstrProf: An intrinsic and lowering for instrumentation based profiling 2014-12-08 18:02:35 +00:00
openmp I apologise in advance for the size of this check-in. At Intel we do 2014-10-07 16:25:50 +00:00
polly Simplify computation of reduction dependences 2014-12-07 22:51:45 +00:00