Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add a wrapper for open. | Rafael Espindola | 2013-07-16 | 1 | -2/+2 |
| | | | | | | | This centralizes the handling of O_BINARY and opens the way for hiding more differences (like how open behaves with directories). llvm-svn: 186447 | ||||
* | Use the new script to sort the includes of every file under lib. | Chandler Carruth | 2012-12-03 | 1 | -4/+4 |
| | | | | | | | | | | | | | | | | | Sooooo many of these had incorrect or strange main module includes. I have manually inspected all of these, and fixed the main module include to be the nearest plausible thing I could find. If you own or care about any of these source files, I encourage you to take some time and check that these edits were sensible. I can't have broken anything (I strictly added headers, and reordered them, never removed), but they may not be the headers you'd really like to identify as containing the API being implemented. Many forward declarations and missing includes were added to a header files to allow them to parse cleanly when included first. The main module rule does in fact have its merits. =] llvm-svn: 169131 | ||||
* | Add more PRI.64 macros for MSVC and use them throughout the codebase. | Benjamin Kramer | 2011-11-05 | 1 | -1/+1 |
| | | | | llvm-svn: 143799 | ||||
* | Let printf do the formatting instead aligning strings ourselves. | Benjamin Kramer | 2011-10-16 | 1 | -10/+6 |
| | | | | | | While at it, merge some format strings. llvm-svn: 142140 | ||||
* | Merge System into Support. | Michael J. Spencer | 2010-11-29 | 1 | -2/+2 |
| | | | | llvm-svn: 120298 | ||||
* | Roll back my last two commits, valgrind complains. | Benjamin Kramer | 2010-08-07 | 1 | -3/+2 |
| | | | | llvm-svn: 110518 | ||||
* | Kill rarely used std::sort. | Benjamin Kramer | 2010-08-07 | 1 | -2/+3 |
| | | | | llvm-svn: 110516 | ||||
* | Give NamedRegionTimer an Enabled flag, allowing all its clients to | Dan Gohman | 2010-06-18 | 1 | -4/+6 |
| | | | | | | | | | | | | | | | | | | | | switch from this: if (TimePassesIsEnabled) { NamedRegionTimer T(Name, GroupName); do_something(); } else { do_something(); // duplicate the code, this time without a timer! } to this: { NamedRegionTimer T(Name, GroupName, TimePassesIsEnabled); do_something(); } llvm-svn: 106285 | ||||
* | Add a comment explaining why this code uses Append mode. | Dan Gohman | 2010-05-19 | 1 | -0/+4 |
| | | | | llvm-svn: 104095 | ||||
* | Fix a bunch of namespace polution. | Dan Gohman | 2010-04-15 | 1 | -0/+4 |
| | | | | llvm-svn: 101376 | ||||
* | stringref'ize Timer apis | Chris Lattner | 2010-03-30 | 1 | -16/+15 |
| | | | | llvm-svn: 99877 | ||||
* | finally, maintain a global list of timer groups, allowing us to | Chris Lattner | 2010-03-30 | 1 | -0/+30 |
| | | | | | | | implement TimerGroup::printAll, which prints and resets all active timers. llvm-svn: 99876 | ||||
* | add a new TimerGroup::print method, and refactor away the bogus | Chris Lattner | 2010-03-30 | 1 | -31/+52 |
| | | | | | | TimerGroup copy ctor and assignment operator. llvm-svn: 99875 | ||||
* | rename GetLibSupportInfoOutputFile -> CreateInfoOutputFile and | Chris Lattner | 2010-03-30 | 1 | -12/+9 |
| | | | | | | have it always return a new stream to simplify clients. llvm-svn: 99874 | ||||
* | if a timergroup is destroyed before its timers, print times. | Chris Lattner | 2010-03-30 | 1 | -5/+13 |
| | | | | llvm-svn: 99873 | ||||
* | change TimerGroup to keep a linked list of active timers | Chris Lattner | 2010-03-30 | 1 | -55/+67 |
| | | | | | | | | instead of just a count of them, and refactor the guts of report printing out of removeTimer into its own method. Refactor addTimerToPrint away. llvm-svn: 99872 | ||||
* | reapply my timer rewrite with a change for PassManager to store | Chris Lattner | 2010-03-30 | 1 | -139/+85 |
| | | | | | | timers by pointer instead of by-value. llvm-svn: 99871 | ||||
* | revert r99862 which is causing FNT failures. | Chris Lattner | 2010-03-30 | 1 | -85/+139 |
| | | | | llvm-svn: 99870 | ||||
* | fairly major rewrite of various timing related stuff. | Chris Lattner | 2010-03-30 | 1 | -139/+85 |
| | | | | llvm-svn: 99862 | ||||
* | move a function into a more logical place in the file | Chris Lattner | 2010-03-29 | 1 | -22/+21 |
| | | | | llvm-svn: 99842 | ||||
* | remove support for per-time peak memory tracking, this | Chris Lattner | 2010-03-29 | 1 | -29/+4 |
| | | | | | | | isn't used by anyone and is better exposed as a non-per-timer thing. Also, stop including System/Mutex.h in Timer.h llvm-svn: 99841 | ||||
* | various timer fixes: move operator= out of line, | Chris Lattner | 2010-03-29 | 1 | -13/+20 |
| | | | | | | | | | eliminate the per-timer lock (timers should be externally locked if needed), the info-output-stream can never be dbgs(), so drop the check. Make some stuff private. llvm-svn: 99839 | ||||
* | s/.../. | Chris Lattner | 2010-03-29 | 1 | -7/+7 |
| | | | | llvm-svn: 99834 | ||||
* | move code around and improve indentation, no functionality change. | Chris Lattner | 2010-03-29 | 1 | -126/+124 |
| | | | | llvm-svn: 99831 | ||||
* | Change errs() to dbgs(). | David Greene | 2010-01-05 | 1 | -1/+2 |
| | | | | llvm-svn: 92645 | ||||
* | Fix a race condition in the Timer class. | Owen Anderson | 2009-11-17 | 1 | -38/+5 |
| | | | | llvm-svn: 89056 | ||||
* | Trailing whitespace. | Mikhail Glushenkov | 2009-11-07 | 1 | -7/+7 |
| | | | | llvm-svn: 86347 | ||||
* | remove some uses of llvm/Support/Streams.h | Chris Lattner | 2009-08-23 | 1 | -50/+28 |
| | | | | llvm-svn: 79842 | ||||
* | Have scoped mutexes take referenes instead of pointers. | Owen Anderson | 2009-07-07 | 1 | -7/+7 |
| | | | | llvm-svn: 74931 | ||||
* | Make timers threadsafe again. This isn't quite as nice as I'd hoped (it ↵ | Owen Anderson | 2009-06-23 | 1 | -1/+53 |
| | | | | | | | | | | uses locking rather than atomic arithmetic), but should work on all the platforms we care about. I might revisit this if a totally awesome way to do it occurs to me. llvm-svn: 74002 | ||||
* | Revert my last series of commits related to Timer and 64-bit atomics. Not ↵ | Owen Anderson | 2009-06-23 | 1 | -19/+19 |
| | | | | | | | | all the targets we care about are capable of supporting it. llvm-svn: 73993 | ||||
* | Switched size_t to int64_t to prevent type mismatch in call to max. | Lang Hames | 2009-06-23 | 1 | -2/+2 |
| | | | | llvm-svn: 73988 | ||||
* | Actually, these need to be signed integers, not unsigned. | Owen Anderson | 2009-06-23 | 1 | -2/+2 |
| | | | | llvm-svn: 73978 | ||||
* | Use 64-bit integer counters for tracking time, rather than doubles. This ↵ | Owen Anderson | 2009-06-23 | 1 | -17/+17 |
| | | | | | | will be more atomic op friendly. llvm-svn: 73974 | ||||
* | Make the lazy initialization of DefaultTimerGroup threadsafe. | Owen Anderson | 2009-06-23 | 1 | -8/+14 |
| | | | | llvm-svn: 73963 | ||||
* | Revert r73923, which broke clang. | Owen Anderson | 2009-06-23 | 1 | -18/+10 |
| | | | | llvm-svn: 73957 | ||||
* | Add guards around timer groups, which can be shared. | Owen Anderson | 2009-06-22 | 1 | -10/+18 |
| | | | | llvm-svn: 73923 | ||||
* | Reapply 53476 and 53480, with a fix so that it properly updates | Dan Gohman | 2008-07-14 | 1 | -2/+34 |
| | | | | | | | the BB member to the current basic block after emitting instructions. llvm-svn: 53567 | ||||
* | Back out 53476 and 53480 for now. Somehow they cause llc to miscompile 179.art. | Evan Cheng | 2008-07-12 | 1 | -34/+2 |
| | | | | llvm-svn: 53502 | ||||
* | Add support for putting NamedRegionTimers in TimerGroups, and | Dan Gohman | 2008-07-11 | 1 | -2/+34 |
| | | | | | | | | use a timer group for the timers in SelectionDAGISel. Also, Split scheduling out from emitting, to give each their own timer. llvm-svn: 53476 | ||||
* | Use find instead of lower_bound. | Dan Gohman | 2008-07-11 | 1 | -2/+2 |
| | | | | llvm-svn: 53474 | ||||
* | Append to the ActiveTimers std::vector before looking at the timer instead | Dan Gohman | 2008-06-24 | 1 | -1/+1 |
| | | | | | | | | of after, so that any reallocation it does doesn't get counted for the pass being timed. This probably doesn't account for a timing discrepancy I was looking into, but I'm fixing it anyway. llvm-svn: 52693 | ||||
* | Make these variables static. | Dan Gohman | 2008-04-23 | 1 | -2/+2 |
| | | | | llvm-svn: 50196 | ||||
* | Remove attribution from file headers, per discussion on llvmdev. | Chris Lattner | 2007-12-29 | 1 | -2/+2 |
| | | | | llvm-svn: 45418 | ||||
* | Removed more <iostream> includes | Bill Wendling | 2006-12-07 | 1 | -7/+7 |
| | | | | llvm-svn: 32321 | ||||
* | Detemplatize the Statistic class. The only type it is instantiated with | Chris Lattner | 2006-12-06 | 1 | -1/+1 |
| | | | | | | is 'unsigned'. llvm-svn: 32279 | ||||
* | Fix more static dtor issues | Chris Lattner | 2006-10-04 | 1 | -15/+16 |
| | | | | llvm-svn: 30725 | ||||
* | Remove trailing whitespace | Misha Brukman | 2005-04-21 | 1 | -7/+7 |
| | | | | llvm-svn: 21422 | ||||
* | Timers SHOULD NOT record the time taken to count the bytes allocated in the ↵ | Chris Lattner | 2005-03-22 | 1 | -2/+2 |
| | | | | | | heap! llvm-svn: 20765 | ||||
* | Don't print a 'Total Execution Time' line for the 'Miscellaneous Ungrouped | Chris Lattner | 2005-02-09 | 1 | -6/+14 |
| | | | | | | | Timers' section. Since these are random timers in the program it doesn't make sense to sum them up. llvm-svn: 20090 |