]> granicus.if.org Git - clang/commit
Call out to GCC-compatible runtime functions for atomic ops that we can't use
authorDavid Chisnall <csdavec@swan.ac.uk>
Thu, 29 Mar 2012 18:01:11 +0000 (18:01 +0000)
committerDavid Chisnall <csdavec@swan.ac.uk>
Thu, 29 Mar 2012 18:01:11 +0000 (18:01 +0000)
commit3a7d69bf666140e45ea7d75b6887d4b67eecd68e
tree82e81c2cbd76ba8feacb3c1e472dd7e4f277a9a1
parent2ebb98a78471f2039af4321bae657e7daacc2a62
Call out to GCC-compatible runtime functions for atomic ops that we can't use
LLVM intrinsics for.

I have an implementation of these functions, which wants to go in a libgcc_s
equivalent in compiler-rt.  It's currently here:

http://people.freebsd.org/~theraven/atomic.c

It will be committed to compiler-rt as soon as I work out where would be a
sensible place to put it...

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153666 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExpr.cpp
test/CodeGen/atomic-ops.c