]> granicus.if.org Git - clang/commit
Implement support for 18 of the GNU-compatible __atomic builtins.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 12 Apr 2012 05:08:17 +0000 (05:08 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 12 Apr 2012 05:08:17 +0000 (05:08 +0000)
commitff34d401ff385ef7173ca612432b4ea717fff690
treede759a7c65405730906e7d4ffd5f25cbbd5bcf69
parentb92bd4b3271b7892abe9fd8c74fb54a27ad702ab
Implement support for 18 of the GNU-compatible __atomic builtins.

This is not quite sufficient for libstdc++'s <atomic>: we still need
__atomic_test_and_set and __atomic_clear, and may need a more complete
__atomic_is_lock_free implementation.

We are also missing an implementation of __atomic_always_lock_free,
__atomic_nand_fetch, and __atomic_fetch_nand, but those aren't needed
for libstdc++.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154579 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Expr.h
include/clang/Basic/Builtins.def
include/clang/Basic/DiagnosticSemaKinds.td
lib/AST/Expr.cpp
lib/AST/StmtPrinter.cpp
lib/CodeGen/CGExpr.cpp
lib/Sema/SemaChecking.cpp
test/CodeGen/atomic-ops.c
test/CodeGen/atomic_init.c [deleted file]
test/Misc/serialized-diags.c
test/Sema/atomic-ops.c