summaryrefslogtreecommitdiff
path: root/include/llvm/LinkAllPasses.h
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2011-04-12 01:06:09 +0000
committerNick Lewycky <nicholas@mxc.ca>2011-04-12 01:06:09 +0000
commit93b68b20d46f52e2df6914343f1c54c96d6bdf3d (patch)
treec06b7cd66601786a3d30909e72daef28259cbb38 /include/llvm/LinkAllPasses.h
parentceb465a8a4ce2101bd7dd50db99cbc6b82757bd6 (diff)
downloadllvm-93b68b20d46f52e2df6914343f1c54c96d6bdf3d.tar.gz
llvm-93b68b20d46f52e2df6914343f1c54c96d6bdf3d.tar.bz2
llvm-93b68b20d46f52e2df6914343f1c54c96d6bdf3d.tar.xz
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
Diffstat (limited to 'include/llvm/LinkAllPasses.h')
-rw-r--r--include/llvm/LinkAllPasses.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/LinkAllPasses.h b/include/llvm/LinkAllPasses.h
index c09c67788d..9c486b0181 100644
--- a/include/llvm/LinkAllPasses.h
+++ b/include/llvm/LinkAllPasses.h
@@ -70,6 +70,7 @@ namespace {
(void) llvm::createEdgeProfilerPass();
(void) llvm::createOptimalEdgeProfilerPass();
(void) llvm::createPathProfilerPass();
+ (void) llvm::createLineProfilerPass();
(void) llvm::createFunctionInliningPass();
(void) llvm::createAlwaysInlinerPass();
(void) llvm::createGlobalDCEPass();