search for: cas_flag

Displaying 6 results from an estimated 6 matches for "cas_flag".

Did you mean: has_flag
2016 Apr 16
2
[TSAN] LLVM statistics and pass initialization trigger race detection
...is not thread safe. Can we tell TSAN to ignore the statistics somehow? Alternatively, is there a fix someone can suggest? 2) Pass initialization. This macro does not please TSAN (even though it seems written with TSAN in mind): #define CALL_ONCE_INITIALIZATION(function) \ static volatile sys::cas_flag initialized = 0; \ sys::cas_flag old_val = sys::CompareAndSwap(&initialized, 1, 0); \ if (old_val == 0) { \ function(Registry); \ sys::MemoryFence(); \ TsanIgnoreWritesBegin(); \ TsanHappensBefore(&initialized); \ initialized = 2; \ TsanIgnoreWritesEnd(); \ } e...
2009 Dec 07
2
[LLVMdev] Trunk build failure
On the trunk I am getting some errors which are killing the rest of the build: 2>Atomic.cpp(49) : error C2664: 'InterlockedCompareExchange' : cannot convert parameter 1 from 'volatile llvm::sys::cas_flag *' to 'volatile LONG *' 2> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast 2>Atomic.cpp(62) : error C2664: 'InterlockedIncrement' : cannot convert parameter 1 from 'volatile llvm::sys::cas_flag *' to...
2012 Feb 28
0
[LLVMdev] [patch] atomic functions on darwin
...al = 1; __sync_synchronize(); Index: include/llvm/Support/Atomic.h =================================================================== --- include/llvm/Support/Atomic.h (revision 151623) +++ include/llvm/Support/Atomic.h (working copy) @@ -22,6 +22,8 @@ #ifdef _MSC_VER typedef long cas_flag; +#elif defined(__APPLE__) + typedef int32_t cas_flag; #else typedef uint32_t cas_flag; #endif Index: lib/Support/Atomic.cpp =================================================================== --- lib/Support/Atomic.cpp (revision 151623) +++ lib/Support/Atomic.cpp (working copy) @@ -21,17...
2015 Feb 24
2
[LLVMdev] Removing contention in PassRegistry accesses to speed up compiles
...7..44b4d56 100644 --- a/llvm/llvm.svnrev.170375/include/llvm/PassSupport.h +++ b/llvm/llvm.svnrev.170375/include/llvm/PassSupport.h @@ -130,25 +130,14 @@ private: PassInfo(const PassInfo &) LLVM_DELETED_FUNCTION; }; + + #define CALL_ONCE_INITIALIZATION(function) \ - static volatile sys::cas_flag initialized = 0; \ - sys::cas_flag old_val = sys::CompareAndSwap(&initialized, 1, 0); \ - if (old_val == 0) { \ + static __thread int initialized = 0; \ + if (initialized == 0) { \ function(Registry); \ - sys::MemoryFence(); \ - TsanIgnoreWritesBegin(); \ - TsanHappensBefore(&...
2016 Aug 25
4
CFLAA
(and sys::cas_flag that STATISTIC uses is a uint32 ...) On Thu, Aug 25, 2016 at 9:54 AM, Daniel Berlin <dberlin at dberlin.org> wrote: > Okay, dumb question: > Are you really getting negative numbers in the second column? > > 526,766 -136 mem2reg # PHI nodes inserted > > http...
2016 Aug 25
2
CFLAA
I did gathered aggregate statistics reported by “-stats” over the ~400 test files. The following table summarizes the impact. The first column is the sum where the new analysis is enabled, the second column is the delta from baseline where no CFL alias analysis is performed. I am not experienced enough to know which of these are “good” or “bad” indicators. —david 72,250 685 SLP