History log of /llvm-project/llvm/lib/Support/ManagedStatic.cpp (Results 26 – 46 of 46)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# d4f7dfe7 16-Jun-2014 Zachary Turner <zturner@google.com>

Remove some code churn.

llvm-svn: 211068


# 0f2c641f 16-Jun-2014 Zachary Turner <zturner@google.com>

Remove some more code out into a separate CL.

llvm-svn: 211067


# b344f057 16-Jun-2014 Zachary Turner <zturner@google.com>

Users of the llvm global mutex must now acquire it manually.

This allows the mutex to be acquired in a guarded, RAII fashion.

llvm-svn: 211066


# 6610b99c 10-Jun-2014 Zachary Turner <zturner@google.com>

Revert "Remove support for runtime multi-threading."

This reverts revision r210600.

llvm-svn: 210603


# f6054ca1 10-Jun-2014 Zachary Turner <zturner@google.com>

Remove support for runtime multi-threading.

This patch removes the functions llvm_start_multithreaded() and
llvm_stop_multithreaded(), and changes llvm_is_multithreaded()
to return a constant value

Remove support for runtime multi-threading.

This patch removes the functions llvm_start_multithreaded() and
llvm_stop_multithreaded(), and changes llvm_is_multithreaded()
to return a constant value based on the value of the compile-time
definition LLVM_ENABLE_THREADS.

Previously, it was possible to have compile-time support for
threads on, and runtime support for threads off, in which case
certain mutexes were not allocated or ever acquired. Now, if the
build is created with threads enabled, mutexes are always acquired.

A test before/after patch of compiling a very large TU showed no
noticeable performance impact of this change.

Reviewers: rnk

Differential Revision: http://reviews.llvm.org/D4076

llvm-svn: 210600

show more ...


Revision tags: llvmorg-3.4.2, llvmorg-3.4.2-rc1, llvmorg-3.4.1, llvmorg-3.4.1-rc2
# 5b01593d 17-Apr-2014 David Blaikie <dblaikie@gmail.com>

ManagedStatic is never built with a null constructor, remove support for it.

llvm-svn: 206492


# 2617dcce 15-Apr-2014 Craig Topper <craig.topper@gmail.com>

[C++11] More 'nullptr' conversion. In some cases just using a boolean check instead of comparing to nullptr.

llvm-svn: 206252


Revision tags: llvmorg-3.4.1-rc1
# 8d399f87 09-Apr-2014 Craig Topper <craig.topper@gmail.com>

[C++11] Replace some comparisons with 'nullptr' with simple boolean checks to reduce verbosity.

llvm-svn: 205829


# c10719f5 07-Apr-2014 Craig Topper <craig.topper@gmail.com>

[C++11] Make use of 'nullptr' in the Support library.

llvm-svn: 205697


# 17388a61 03-Mar-2014 Benjamin Kramer <benny.kra@googlemail.com>

Revert "[C++11] Replace LLVM atomics with std::atomic."

Breaks the MSVC build.
DataStream.cpp(44): error C2552: 'llvm::Statistic::Value' : non-aggregates cannot be initialized with initializer list

Revert "[C++11] Replace LLVM atomics with std::atomic."

Breaks the MSVC build.
DataStream.cpp(44): error C2552: 'llvm::Statistic::Value' : non-aggregates cannot be initialized with initializer list

llvm-svn: 202731

show more ...


# 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 ...


Revision tags: llvmorg-3.4.0, llvmorg-3.4.0-rc3, llvmorg-3.4.0-rc2, llvmorg-3.4.0-rc1, 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, 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
# fe856110 14-Nov-2011 Nick Lewycky <nicholas@mxc.ca>

Add support for tsan annotations (thread sanitizer, a valgrind-based tool).
These annotations are disabled entirely when either ENABLE_THREADS is off, or
building a release build. When enabled, they

Add support for tsan annotations (thread sanitizer, a valgrind-based tool).
These annotations are disabled entirely when either ENABLE_THREADS is off, or
building a release build. When enabled, they add calls to functions with no
statements to ManagedStatic's getters.

Use these annotations to inform tsan that the race used inside ManagedStatic
initialization is actually benign. Thanks to Kostya Serebryany for helping
write this patch!

llvm-svn: 144567

show more ...


Revision tags: llvmorg-3.0.0-rc3, llvmorg-3.0.0-rc2, llvmorg-3.0.0-rc1, 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, llvmorg-2.7.0, llvmorg-2.6.0
# 4cb4b619 16-Jun-2009 Owen Anderson <resistor@mac.com>

Split the thread-related APIs out into their own file, and add a few more
calls for convenience.

llvm-svn: 73512


# 09f17a84 30-May-2009 Bill Wendling <isanbard@gmail.com>

Untabification.

llvm-svn: 72604


# e147774b 20-May-2009 Owen Anderson <resistor@mac.com>

Have llvm_start_multithreaded return a bool indicating whether multithreaded
initialization succeeded or not, rather than just asserting.

llvm-svn: 72182


# b9a4a576 20-May-2009 Owen Anderson <resistor@mac.com>

Add llvm_start_multithreaded(), which starts up the LLVM internals in thread-safe mode. Provide double-check locking
initialization of ManagedStatic's when running in thread-safe mode.

llvm-svn: 72

Add llvm_start_multithreaded(), which starts up the LLVM internals in thread-safe mode. Provide double-check locking
initialization of ManagedStatic's when running in thread-safe mode.

llvm-svn: 72151

show more ...


Revision tags: llvmorg-2.5.0, llvmorg-2.4.0, llvmorg-2.3.0, llvmorg-2.2.0
# f3ebc3f3 29-Dec-2007 Chris Lattner <sabre@nondot.org>

Remove attribution from file headers, per discussion on llvmdev.

llvm-svn: 45418


Revision tags: llvmorg-2.1.0, llvmorg-2.0.0
# 4510c99a 20-Feb-2007 Chris Lattner <sabre@nondot.org>

Not all managedstatics need object pointers.

llvm-svn: 34444


Revision tags: llvmorg-1.9.0
# adf40953 29-Sep-2006 Chris Lattner <sabre@nondot.org>

Define this in the correct n/s

llvm-svn: 30671


# 9daff49e 28-Sep-2006 Chris Lattner <sabre@nondot.org>

new helper class to provide more explicit management of static ctor/dtors.

llvm-svn: 30638


12