llvm/lib/Transforms/Instrumentation
Nick Lewycky 93b68b20d4 Add support for line profiling. Very work-in-progress.
Use debug info in the IR to find the directory/file:line:col. Each time that location changes, bump a counter.

Unlike the existing profiling system, we don't try to look at argv[], and thusly don't require main() to be present in the IR. This matches GCC's technique where you specify the profiling flag when producing each .o file.

The runtime library is minimal, currently just calling printf at program shutdown time. The API is designed to make it possible to emit GCOV data later on.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129340 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-12 01:06:09 +00:00
..
CMakeLists.txt Implementation of path profiling. 2011-01-29 01:09:53 +00:00
EdgeProfiling.cpp Implementation of path profiling. 2011-01-29 01:09:53 +00:00
Instrumentation.cpp Add support for line profiling. Very work-in-progress. 2011-04-12 01:06:09 +00:00
LineProfiling.cpp Add support for line profiling. Very work-in-progress. 2011-04-12 01:06:09 +00:00
Makefile make -fno-rtti the default unless a directory builds with REQUIRES_RTTI. 2010-01-24 20:43:08 +00:00
MaximumSpanningTree.h Fix typos. Adjust some whitespace for style. No functionality change. 2011-04-05 20:39:27 +00:00
OptimalEdgeProfiling.cpp Don't include Operator.h from InstrTypes.h. 2011-04-11 09:35:34 +00:00
PathProfiling.cpp Remove PHINode::reserveOperandSpace(). Instead, add a parameter to 2011-03-30 11:28:46 +00:00
ProfilingUtils.cpp Consider ConstantAggregateZero as well as ConstantArray/Struct. 2011-04-12 01:02:45 +00:00
ProfilingUtils.h Add a function for profiling to run at shutdown. Unlike the existing API, this 2011-04-08 22:19:52 +00:00