#
0b6eb591 |
| 03-Mar-2014 |
Benjamin Kramer <benny.kra@googlemail.com> |
[C++11] Replace LLVM atomics with std::atomic.
With C++11 we finally have a standardized way to specify atomic operations. Use them to replace the existing custom implemention. Sadly the translation
[C++11] Replace LLVM atomics with std::atomic.
With C++11 we finally have a standardized way to specify atomic operations. Use them to replace the existing custom implemention. Sadly the translation is not entirely trivial as std::atomic allows more fine-grained control over the atomicity. I tried to preserve the old semantics as well as possible.
Differential Revision: http://llvm-reviews.chandlerc.com/D2915
llvm-svn: 202730
show more ...
|
#
90c7f1cc |
| 24-Feb-2014 |
Rafael Espindola <rafael.espindola@gmail.com> |
Replace the F_Binary flag with a F_Text one.
After this I will set the default back to F_None. The advantage is that before this patch forgetting to set F_Binary would corrupt a file on windows. For
Replace the F_Binary flag with a F_Text one.
After this I will set the default back to F_None. The advantage is that before this patch forgetting to set F_Binary would corrupt a file on windows. Forgetting to set F_Text produces one that cannot be read in notepad, which is a better failure mode :-)
llvm-svn: 202052
show more ...
|
Revision tags: llvmorg-3.4.0, llvmorg-3.4.0-rc3, llvmorg-3.4.0-rc2, llvmorg-3.4.0-rc1 |
|
#
6d35481c |
| 16-Jul-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Add a wrapper for open.
This centralizes the handling of O_BINARY and opens the way for hiding more differences (like how open behaves with directories).
llvm-svn: 186447
|
Revision tags: llvmorg-3.3.1-rc1, llvmorg-3.3.0, llvmorg-3.3.0-rc3, llvmorg-3.3.0-rc2, llvmorg-3.3.0-rc1, llvmorg-3.2.0, llvmorg-3.2.0-rc3 |
|
#
ed0881b2 |
| 03-Dec-2012 |
Chandler Carruth <chandlerc@gmail.com> |
Use the new script to sort the includes of every file under lib.
Sooooo many of these had incorrect or strange main module includes. I have manually inspected all of these, and fixed the main module
Use the new script to sort the includes of every file under lib.
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
show more ...
|
Revision tags: llvmorg-3.2.0-rc2, llvmorg-3.2.0-rc1, llvmorg-3.1.0, llvmorg-3.1.0-rc3, llvmorg-3.1.0-rc2, llvmorg-3.1.0-rc1, llvmorg-3.0.0, llvmorg-3.0.0-rc4, llvmorg-3.0.0-rc3 |
|
#
f3da5290 |
| 05-Nov-2011 |
Benjamin Kramer <benny.kra@googlemail.com> |
Add more PRI.64 macros for MSVC and use them throughout the codebase.
llvm-svn: 143799
|
Revision tags: llvmorg-3.0.0-rc2, llvmorg-3.0.0-rc1 |
|
#
cc863b2b |
| 16-Oct-2011 |
Benjamin Kramer <benny.kra@googlemail.com> |
Let printf do the formatting instead aligning strings ourselves.
While at it, merge some format strings.
llvm-svn: 142140
|
Revision tags: llvmorg-2.9.0, llvmorg-2.9.0-rc3, llvmorg-2.9.0-rc2, llvmorg-2.9.0-rc1 |
|
#
447762da |
| 29-Nov-2010 |
Michael J. Spencer <bigcheesegs@gmail.com> |
Merge System into Support.
llvm-svn: 120298
|
Revision tags: llvmorg-2.8.0, llvmorg-2.8.0-rc3, llvmorg-2.8.0-rc2, llvmorg-2.8.0-rc1, llvmorg-2.8.0-rc0 |
|
#
a7d0ccfe |
| 07-Aug-2010 |
Benjamin Kramer <benny.kra@googlemail.com> |
Roll back my last two commits, valgrind complains.
llvm-svn: 110518
|
#
591a79fb |
| 07-Aug-2010 |
Benjamin Kramer <benny.kra@googlemail.com> |
Kill rarely used std::sort.
llvm-svn: 110516
|
#
6e681a5f |
| 18-Jun-2010 |
Dan Gohman <gohman@apple.com> |
Give NamedRegionTimer an Enabled flag, allowing all its clients to switch from this:
if (TimePassesIsEnabled) { NamedRegionTimer T(Name, GroupName); do_something(); } else { do_somet
Give NamedRegionTimer an Enabled flag, allowing all its clients to 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
show more ...
|
#
744c96dd |
| 19-May-2010 |
Dan Gohman <gohman@apple.com> |
Add a comment explaining why this code uses Append mode.
llvm-svn: 104095
|
Revision tags: llvmorg-2.7.0 |
|
#
b29cda9b |
| 15-Apr-2010 |
Dan Gohman <gohman@apple.com> |
Fix a bunch of namespace polution.
llvm-svn: 101376
|
#
39e56a05 |
| 30-Mar-2010 |
Chris Lattner <sabre@nondot.org> |
stringref'ize Timer apis
llvm-svn: 99877
|
#
90fe73dc |
| 30-Mar-2010 |
Chris Lattner <sabre@nondot.org> |
finally, maintain a global list of timer groups, allowing us to implement TimerGroup::printAll, which prints and resets all active timers.
llvm-svn: 99876
|
#
4cd6571f |
| 30-Mar-2010 |
Chris Lattner <sabre@nondot.org> |
add a new TimerGroup::print method, and refactor away the bogus TimerGroup copy ctor and assignment operator.
llvm-svn: 99875
|
#
6cbd8d11 |
| 30-Mar-2010 |
Chris Lattner <sabre@nondot.org> |
rename GetLibSupportInfoOutputFile -> CreateInfoOutputFile and have it always return a new stream to simplify clients.
llvm-svn: 99874
|
#
dcd68b7a |
| 30-Mar-2010 |
Chris Lattner <sabre@nondot.org> |
if a timergroup is destroyed before its timers, print times.
llvm-svn: 99873
|
#
9a608d24 |
| 30-Mar-2010 |
Chris Lattner <sabre@nondot.org> |
change TimerGroup to keep a linked list of active timers instead of just a count of them, and refactor the guts of report printing out of removeTimer into its own method. Refactor addTimerToPrint aw
change TimerGroup to keep a linked list of active timers 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
show more ...
|
#
707431cf |
| 30-Mar-2010 |
Chris Lattner <sabre@nondot.org> |
reapply my timer rewrite with a change for PassManager to store timers by pointer instead of by-value.
llvm-svn: 99871
|
#
ec8ef9b6 |
| 30-Mar-2010 |
Chris Lattner <sabre@nondot.org> |
revert r99862 which is causing FNT failures.
llvm-svn: 99870
|
#
57a05423 |
| 30-Mar-2010 |
Chris Lattner <sabre@nondot.org> |
fairly major rewrite of various timing related stuff.
llvm-svn: 99862
|
#
dcd7f927 |
| 29-Mar-2010 |
Chris Lattner <sabre@nondot.org> |
move a function into a more logical place in the file
llvm-svn: 99842
|
#
09a40748 |
| 29-Mar-2010 |
Chris Lattner <sabre@nondot.org> |
remove support for per-time peak memory tracking, this 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
|
#
b355db78 |
| 29-Mar-2010 |
Chris Lattner <sabre@nondot.org> |
various timer fixes: move operator= out of line, 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 som
various timer fixes: move operator= out of line, 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
show more ...
|
#
5092a6de |
| 29-Mar-2010 |
Chris Lattner <sabre@nondot.org> |
s/.../.
llvm-svn: 99834
|