summaryrefslogtreecommitdiffstats
path: root/llvm/runtime/libprofile
Commit message (Collapse)AuthorAgeFilesLines
...
* Add cmakefiles to build profile_rt.so!Nick Lewycky2011-04-261-0/+9
| | | | llvm-svn: 130191
* Rename everything to follow LLVM style ... I think.Nick Lewycky2011-04-262-5/+29
| | | | | | | | | | | | | | Add support for switch and indirectbr edges. This works by densely numbering all blocks which have such terminators, and then separately numbering the possible successors. The predecessors write down a number, the successor knows its own number (as a ConstantInt) and sends that and the pointer to the number the predecessor wrote down to the runtime, who looks up the counter in a per-function table. Coverage data should now be functional, but I haven't tested it on anything other than my 2-file synthetic test program for coverage. llvm-svn: 130186
* Write out uint64_t as i{0..32},i{33..64} instead of i{0..32},0.Benjamin Kramer2011-04-161-3/+2
| | | | llvm-svn: 129638
* Don't use C++ comments in C code.Nick Lewycky2011-04-161-1/+1
| | | | llvm-svn: 129637
* Rename LineProfiling to GCOVProfiling to more accurately represent what itNick Lewycky2011-04-163-43/+108
| | | | | | | does. Also mostly implement it. Still a work-in-progress, but generates legal output on crafted test cases. llvm-svn: 129630
* Fix a ton of comment typos found by codespell. Patch byChris Lattner2011-04-152-2/+2
| | | | | | Luis Felipe Strano Moraes! llvm-svn: 129558
* Fix format string warning.Benjamin Kramer2011-04-131-1/+1
| | | | llvm-svn: 129467
* Use %ull here.Nick Lewycky2011-04-131-1/+2
| | | | llvm-svn: 129423
* Print our uint64_t with the more portable (C99 and C++0x) %PRIu64 formatNick Lewycky2011-04-121-1/+3
| | | | | | specifier. llvm-svn: 129384
* The counters are unsigned.Nick Lewycky2011-04-121-1/+1
| | | | llvm-svn: 129380
* Add support for line profiling. Very work-in-progress.Nick Lewycky2011-04-122-0/+40
| | | | | | | | | | 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. llvm-svn: 129340
* Implementation of path profiling.Andrew Trick2011-01-294-23/+310
| | | | | | | | | | Modified patch by Adam Preuss. This builds on the existing framework for block tracing, edge profiling and optimal edge profiling. See -help-hidden for new flags. For documentation, see the technical report "Implementation of Path Profiling..." in llvm.org/pubs. llvm-svn: 124515
* Rename 'libprofile/exported_symbols.lst' to 'libprofile/libprofile.exports'.Mikhail Glushenkov2010-09-032-4/+4
| | | | | | | Makefile.rules assumes that all EXPORTED_SYMBOL_FILEs have the .exports extension. llvm-svn: 112964
* Delete a blank line.Dan Gohman2010-04-161-1/+0
| | | | llvm-svn: 101459
* Make the export files absolute paths, and change Makefile.rulesDan Gohman2010-04-151-1/+1
| | | | | | to expect them this way, to fix srcdir!=objdir builds. llvm-svn: 101414
* Don't use absolute path for EXPORTED_SYMBOL_FILE, this breaks under the newDaniel Dunbar2010-04-151-1/+1
| | | | | | system. llvm-svn: 101404
* Switch .bc/.ll Makefile rules to use LLVM{CC,CXX} instead of LLVMG{CC,XX}Daniel Dunbar2010-02-231-1/+1
| | | | llvm-svn: 96936
* remove the random sampling framework, which is not maintained anymore.Chris Lattner2010-01-023-89/+0
| | | | | | If there is interest, it can be resurrected from SVN. PR4912. llvm-svn: 92422
* OptimalEdgeProfiling: Creation of profiles.Andreas Neustifter2009-09-012-0/+46
| | | | | | This adds the instrumentation and runtime part of OptimalEdgeProfiling. llvm-svn: 80712
* Read Makefile.config before using LLVMGCC.Andreas Neustifter2009-08-281-0/+2
| | | | | | See http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090824/085828.html llvm-svn: 80372
* Add llvm_start_edge_profiling to exported symbols for libprofile_rt.Andreas Neustifter2009-08-241-0/+1
| | | | llvm-svn: 79944
* Don't try to build .bc version of libprofile if LLVMGCC isn't available.Daniel Dunbar2009-08-201-0/+2
| | | | llvm-svn: 79514
* Remove cruft for installing runtime/ libraries directly into the LLVMGCCDIR;Daniel Dunbar2009-08-201-1/+0
| | | | | | that is totally bogus. llvm-svn: 79512
* remove attribution from a variety of miscellaneous files.Chris Lattner2007-12-296-12/+12
| | | | llvm-svn: 45425
* remove attributions from the rest of the llvm makefiles.Chris Lattner2007-12-291-2/+2
| | | | llvm-svn: 45416
* Undo removal of the runtime libraries. While this may have been a bitReid Spencer2006-11-178-0/+371
| | | | | | | premature, these libraries will be going away for the 2.0 release. Other arrangements for profiling, gc, etc. should be made in the next few months. llvm-svn: 31807
* In LLVM 2.0 we won't use the runtime libraries as llvm-gcc3 support willReid Spencer2006-11-168-371/+0
| | | | | | be dropped. This patch pertains to removing the runtime directory from LLVM. llvm-svn: 31793
* Remove unused variable.Reid Spencer2006-11-031-1/+0
| | | | llvm-svn: 31404
* This was never updated for the project makefile changesChris Lattner2005-10-181-1/+1
| | | | llvm-svn: 23790
* Remove trailing whitespaceMisha Brukman2005-04-211-2/+2
| | | | llvm-svn: 21427
* Turn on LOADABLE_MODULE so that profile.so can be loaded dynamically byReid Spencer2005-01-131-0/+1
| | | | | | the JIT. llvm-svn: 19524
* For PR432:Reid Spencer2004-12-221-1/+1
| | | | | | * Variable name change: cferuntime_libdir -> CFERuntimeLibDir llvm-svn: 19096
* Use the new BYTECODE_DESTINATION to override the default bytecode installReid Spencer2004-12-131-0/+1
| | | | | | | | | destination for this library so that it goes to $(cferuntime_libdir) rather than just $(libdir). Normal bytecode libraries should be installed in the $(libdir), but these ones are "special" because they're part of the the C/C++ front end. llvm-svn: 18882
* Standardize the makefiles with space around = to match the rest of LLVM.Reid Spencer2004-12-021-3/+3
| | | | llvm-svn: 18429
* Standardize the format of the runtime libraries makefiles.Reid Spencer2004-12-021-2/+1
| | | | | | | | * Don't have lines longer than 80 cols * Blank line after the header * Reduce spaces in var definitions. llvm-svn: 18427
* Remove this left-over crud from the automake experiment.Reid Spencer2004-12-021-665/+0
| | | | llvm-svn: 18424
* Add EXTRA_DIST for additional files to be distributed.Reid Spencer2004-10-261-1/+2
| | | | llvm-svn: 17233
* We won't use automakeReid Spencer2004-10-221-16/+0
| | | | llvm-svn: 17155
* Initial automake generated Makefile templateReid Spencer2004-10-181-0/+665
| | | | llvm-svn: 17136
* Initial Makefile.am for building with automakeReid Spencer2004-10-171-0/+16
| | | | llvm-svn: 17073
* Share the profile info type enum with the C++ analysis libraries.Brian Gaeke2004-05-041-9/+5
| | | | | | Add a documentation comment for write_profiling_data(). llvm-svn: 13345
* Constants for profile info type changed names to match the C++ ones.Brian Gaeke2004-05-043-3/+3
| | | | llvm-svn: 13344
* Constants for profile info type changed names to match the C++ ones.Brian Gaeke2004-05-042-11/+12
| | | | | | Edited comments. llvm-svn: 13343
* Add initial implementation of basic block tracing runtimeBrian Gaeke2004-05-031-0/+67
| | | | llvm-svn: 13339
* Add basic block tracing functions as exported symbols.Brian Gaeke2004-05-031-0/+2
| | | | llvm-svn: 13338
* Add basic block tracing information as a type of "profiling" information.Brian Gaeke2004-05-031-1/+2
| | | | llvm-svn: 13337
* Add edge profiling support to the runtime libraryChris Lattner2004-03-081-0/+45
| | | | llvm-svn: 12227
* Make sure to copy the null terminator at the end of the argv list. SomeChris Lattner2004-02-101-2/+2
| | | | | | programs use it instead of argc. llvm-svn: 11270
* Allow the program to take a '-llvmprof-output filename' option to specifyChris Lattner2004-02-101-2/+30
| | | | | | where to output the profiling data, if llvmprof.out is not good enough. llvm-svn: 11264
* Make the initialization calls return argc.Chris Lattner2004-02-104-9/+13
| | | | llvm-svn: 11261
OpenPOWER on IntegriCloud