Promote atomic type sizes up to a power of two, capped by
authorJohn McCall <rjmccall@apple.com>
Thu, 7 Mar 2013 21:37:17 +0000 (21:37 +0000)
committerJohn McCall <rjmccall@apple.com>
Thu, 7 Mar 2013 21:37:17 +0000 (21:37 +0000)
commita8ec7eb9cfe2adeb1b5d03a94f6cee70972e47b7
tree751e0d6a8bad1e2e901a95c64693639b1157eb34
parentfc207f2d70baeadfe191283bf035c56876f6c9e8
Promote atomic type sizes up to a power of two, capped by
MaxAtomicPromoteWidth.  Fix a ton of terrible bugs with
_Atomic types and (non-intrinsic-mediated) loads and stores
thereto.

llvm-svn: 176658
12 files changed:
clang/lib/AST/ASTContext.cpp
clang/lib/CodeGen/CGAtomic.cpp
clang/lib/CodeGen/CGDecl.cpp
clang/lib/CodeGen/CGExpr.cpp
clang/lib/CodeGen/CGExprAgg.cpp
clang/lib/CodeGen/CGExprComplex.cpp
clang/lib/CodeGen/CGValue.h
clang/lib/CodeGen/CodeGenFunction.h
clang/lib/CodeGen/CodeGenModule.h
clang/lib/CodeGen/CodeGenTypes.cpp
clang/test/CodeGen/c11atomics-ios.c [new file with mode: 0644]
clang/test/CodeGen/c11atomics.c