Enable inlining of 4 byte atomic ops on ppc32, 8 byte atomic ops on ppc64.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 17 Nov 2012 17:30:55 +0000 (17:30 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 17 Nov 2012 17:30:55 +0000 (17:30 +0000)
commit37196de31e6eab348030ef08cf2c3a78af42ee83
tree4f8fcbf8237fea44a28e266dd9743493269ea2fc
parent96e1e396420d45fb4a1d3891105390c53120e8f6
Enable inlining of 4 byte atomic ops on ppc32, 8 byte atomic ops on ppc64.

Also fixes a bit/byte mismatch when checking if a target supports atomic ops of a certain size.

llvm-svn: 168260
clang/lib/Basic/Targets.cpp
clang/lib/CodeGen/CGExpr.cpp
clang/test/CodeGen/ppc-atomics.c [new file with mode: 0644]