llvm/lib
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
..
Analysis Don't include Operator.h from InstrTypes.h. 2011-04-11 09:35:34 +00:00
Archive Revert PathV2 changes, as sys::fs::unique_file is not finished yet. 2011-03-01 19:50:55 +00:00
AsmParser Revert r129235 pending a vetting of the EH rewrite. 2011-04-10 23:18:04 +00:00
Bitcode Fix or remove code which seemed to think that the operand of a Constant 2011-04-11 09:48:55 +00:00
CodeGen Fix typo. 2011-04-12 00:48:08 +00:00
CompilerDriver Build CompilerDriver library. 2011-03-12 22:01:42 +00:00
ExecutionEngine Tidy up a bit now that we're using the MemoryManager interface. 2011-04-12 00:23:32 +00:00
Linker Set the unnamed_addr only when we're creating a new GV in the dest module. 2011-03-29 23:31:06 +00:00
MC Match case for invalid constant error messages and add a new 2011-04-12 00:18:03 +00:00
Object Start migrating mach-o dumping facilities to the object file out of a 2011-04-03 23:51:47 +00:00
Support regexes are allowed to match empty things, e.g. {{.*}} in filecheck. 2011-04-09 06:29:24 +00:00
Target A8.6.16 B 2011-04-12 00:14:49 +00:00
Transforms Add support for line profiling. Very work-in-progress. 2011-04-12 01:06:09 +00:00
VMCore Make IRBuilder support StringRef for building strings. 2011-04-12 00:29:07 +00:00
CMakeLists.txt Build CompilerDriver library. 2011-03-12 22:01:42 +00:00
Makefile Add LLVMObject Library. 2010-11-15 03:21:41 +00:00