llvm-6502/lib/Transforms
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
..
Hello Since the Hello pass is built as a loadable dynamic library, don't try to convert it to new-style registration yet. 2010-10-07 00:31:16 +00:00
InstCombine Don't include Operator.h from InstrTypes.h. 2011-04-11 09:35:34 +00:00
Instrumentation Add support for line profiling. Very work-in-progress. 2011-04-12 01:06:09 +00:00
IPO remove the StructRetPromotion pass. It is unused, not maintained and 2011-04-11 23:09:44 +00:00
Scalar Fix reassociate to use a worklist instead of recursing when new 2011-04-12 00:11:56 +00:00
Utils comment cleanup, use moveBefore instead of removeFromParent+insertBefore. 2011-04-11 23:24:57 +00:00
CMakeLists.txt Move library stuff out of the toplevel CMakeLists.txt file. 2011-02-18 22:06:14 +00:00
Makefile Revert r100896 and around - this breaks the only mingw32 buildbot we have. 2010-04-15 19:51:42 +00:00