summaryrefslogtreecommitdiffstats
path: root/llvm/runtime/libprofile
Commit message (Collapse)AuthorAgeFilesLines
* Use 'RC_XBS' instead of 'RC_BUILDIT' to catch all times when it's built in ↵Bill Wendling2013-02-131-1/+1
| | | | | | the Apple way. llvm-svn: 175069
* libprofile/CommonProfiling.c: Fix according to C89.NAKAMURA Takumi2012-11-021-2/+2
| | | | llvm-svn: 167272
* PGO: allows the profile data file name to be specified by the LLVMPROF_OUTPUTManman Ren2012-11-021-0/+22
| | | | | | | | | | | | | | | environment variable. This allows parallel make for profiling code, without it there are file collisions as each parallel run uses the default file name. There is already code in the runtime library to specify the output file name via the command line, but this only works for programs which already process argc/argv. This patch builds on that support. Patch by Alastair Murray. llvm-svn: 167269
* Place temporary LTO files into their own subdirectory.Bill Wendling2012-10-101-1/+1
| | | | llvm-svn: 165599
* Revert "Use a special path to place the .o files in."Bob Wilson2012-10-091-2/+1
| | | | | | This reverts commit 165428 in an attempt to get our buildbots going. llvm-svn: 165574
* Use a special path to place the .o files in.Bill Wendling2012-10-081-1/+2
| | | | llvm-svn: 165428
* Add an explicit -object_path_lto flag during linking with a uniquified temporaryBill Wendling2012-10-031-1/+8
| | | | | | file name if building Apple-style. llvm-svn: 165185
* libprofile: [CMake] Let libprofile_rt be not loadable_module but shared ↵NAKAMURA Takumi2012-08-291-1/+2
| | | | | | library. Autoconf's one does so. llvm-svn: 162812
* Profile: move a single enum out of ProfileInfoTypes.h into a new Manman Ren2012-08-241-1/+1
| | | | | | | | | | | | ProfileDataTypes.h header. With this patch the old and new profiling code can exist side-by-side. The new profiling code will be submitted soon and it only supports insert-edge-profiling for now and will not depend on ProfileInfo. Patch by Alastair Murray. llvm-svn: 162576
* Free the allocated filename. Found by clang static analyzer.Bill Wendling2012-06-151-0/+1
| | | | llvm-svn: 158513
* Small code cleanup. No functionality change.Bill Wendling2012-05-251-9/+4
| | | | llvm-svn: 157502
* Open in read/write mode, creating the file if it doesn't exist.Bill Wendling2012-05-251-3/+3
| | | | llvm-svn: 157501
* Early-continue.Reducing indentation.Bill Wendling2012-05-251-8/+7
| | | | llvm-svn: 157451
* Don't call exit from a runtime.Bill Wendling2012-05-251-2/+6
| | | | llvm-svn: 157450
* Switch to c-style comments in a C file.David Blaikie2012-04-271-3/+4
| | | | llvm-svn: 155726
* Defensively guard against calling malloc() with a size of zero.Ted Kremenek2012-04-261-0/+9
| | | | llvm-svn: 155661
* Use the correct filename for the error message.Bill Wendling2012-03-281-1/+1
| | | | llvm-svn: 153564
* Use Nakamura's suggestion of bypassing using 'filename' and just the ↵Bill Wendling2012-03-281-5/+2
| | | | | | pointers directly. llvm-svn: 153558
* MSVC doesn't like the mixing of declarations and statements in a .c file.Francois Pichet2012-03-271-1/+2
| | | | llvm-svn: 153549
* Try to use the CWD if the path to the GCDA output is not available (e.g., theBill Wendling2012-03-271-0/+14
| | | | | | | | executable has been moved to another machine). If that's not available (read-only or something), then exit gracefully. <rdar://problem/11111686> llvm-svn: 153538
* Fixing a warning in MSVC (this is also a test commit)Aaron Ballman2012-02-051-2/+2
| | | | llvm-svn: 149844
* PathProfiling.c: Get rid of using "inline". We may expect compiler shall ↵NAKAMURA Takumi2011-11-081-7/+2
| | | | | | optimize out "static" scope w/o "inline". llvm-svn: 144080
* runtime/libprofile/PathProfiling.c: Use __inline__ to appease clang ↵NAKAMURA Takumi2011-11-081-3/+3
| | | | | | | -std=gnu89 -pedantic. FIXME: Should configure detect one? llvm-svn: 144070
* Include direct.h for _mkdir on mingw32 too.Benjamin Kramer2011-10-081-1/+1
| | | | llvm-svn: 141495
* Fix for warnings: ignoring return value of ‘write’, declared with ↵Galina Kistanova2011-09-221-5/+12
| | | | | | attribute warn_unused_result. llvm-svn: 140314
* Use version 402 for the GCDA files when compiling for Apple.Bill Wendling2011-07-281-0/+4
| | | | llvm-svn: 136369
* Build and install the archive when building the Apple way.Bill Wendling2011-07-191-0/+4
| | | | llvm-svn: 135538
* Fix build for (some versions of?) MinGW. Patch by Ruben Van Boxem.Eli Friedman2011-06-231-1/+1
| | | | llvm-svn: 133741
* Remove the LTO stuff from the profile_rt library's Makefile.Bill Wendling2011-06-151-7/+2
| | | | llvm-svn: 133042
* Add compatibility version when compiling the Apple way.Bill Wendling2011-06-131-0/+30
| | | | | | <rdar://problem/9600408> llvm-svn: 132929
* Fix MSVC warning regarding mkdir function usage.Francois Pichet2011-05-261-0/+7
| | | | llvm-svn: 132109
* Fix 3 MSVC warnings: Francois Pichet2011-05-253-3/+3
| | | | | | | | 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)' atexit really expects a "void f(void)" function. llvm-svn: 132061
* The computation of string length is not that complicated. Fix it, again. :)Nick Lewycky2011-05-051-1/+1
| | | | llvm-svn: 130967
* Update the gcov version used slightly, to make it stop causing modern gcov's toNick Lewycky2011-05-051-2/+15
| | | | | | crash. llvm-svn: 130911
* Create the parent directories to place the .gcda files in if they don't exist.Nick Lewycky2011-05-041-0/+18
| | | | | | | That's kinda weird because the .gcno files are supposed to already be there, but libgcov does this and somehow Google has managed to depend on it. llvm-svn: 130879
* Fix crash when not setting GCOV_PREFIX.Nick Lewycky2011-05-041-1/+1
| | | | llvm-svn: 130834
* runtime/libprofile/PathProfiling.c: Don't use // comment in C source.NAKAMURA Takumi2011-04-301-1/+1
| | | | llvm-svn: 130589
* win32: Include DataTypes.h instead of stdint.h to try and fix a Win32 buildDaniel Dunbar2011-04-291-1/+1
| | | | | | issue. llvm-svn: 130530
* Cleanup some DOS newlines.Daniel Dunbar2011-04-291-8/+8
| | | | llvm-svn: 130529
* Unbreak the MSVC build:Francois Pichet2011-04-292-3/+15
| | | | | | | | - unistd.h doesn't exist with MSVC - inline must be __inline in Microsoft C - atexit cannot take a function declared as void f(), must be void f(void). llvm-svn: 130490
* Rename profile_rt.so to libprofile_rt.so under configure+make (it already wasNick Lewycky2011-04-292-3/+13
| | | | | | | | | | | | under cmake). Add libprofile_rt.a so that we can tell clang to link against it in --coverage mode. Also turn it on by default in cmake builds. Oscar, this touches a change you made for EXCLUDE_FROM_ALL support -- I think I've done the right thing, but please let me know (or fix and commit) if not! llvm-svn: 130470
* Only read *predecessor once so as to fix a theoretical issue where it changesNick Lewycky2011-04-281-5/+31
| | | | | | | | | | | | | | | | | | | between two reads (threading). Fix an off-by-one in the indirect counter table that I meant to revert after an earlier experiment. Whoops! Implement GCOV_PREFIX. Doesn't handle GCOV_PREFIX_STRIP yet. Fix an off-by-one in string emission. Extra whoops! Tolerate DISubprograms that have null Function*'s attached to them. I don't yet understand what this means, but it happens when you have a global static with a non-trivial constructor/destructor. Fix a crash on switch statements with a single successor (default-only). llvm-svn: 130443
* Use static inline to do the right thing when built in C99 mode. Of course,Nick Lewycky2011-04-271-2/+3
| | | | | | C89 doesn't have an inline keyword. llvm-svn: 130279
* 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
OpenPOWER on IntegriCloud