]> granicus.if.org Git - clang/commit
Initial implementation of __atomic_is_lock_free. The input is the size of an atomic...
authorEli Friedman <eli.friedman@gmail.com>
Mon, 17 Oct 2011 21:44:23 +0000 (21:44 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Mon, 17 Oct 2011 21:44:23 +0000 (21:44 +0000)
commit454b57ac42c9ce0bed9b7a99c2ed5a18fbcd286b
tree8b8f859d007cf1ffeb2db932dc3886cc7f5fd432
parentabf3ac7131ba8eab1a2ec99397a776fb0c75ff55
Initial implementation of __atomic_is_lock_free.  The input is the size of an atomic type rather than an atomic type itself just to save some implementation pain; I can change that if it seems worthwhile.

I think this is the last hook needed for <atomic> besides defines for ATOMIC_CHAR_LOCK_FREE and friends.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142281 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Builtins.def
lib/AST/ExprConstant.cpp
test/CodeGen/atomic-ops.c