[mips][compiler-rt] Provide 64bit atomic add and sub
authorSimon Dardis <simon.dardis@mips.com>
Thu, 21 Dec 2017 13:05:41 +0000 (13:05 +0000)
committerSimon Dardis <simon.dardis@mips.com>
Thu, 21 Dec 2017 13:05:41 +0000 (13:05 +0000)
commit70cd933ff826b706781d720267ed1f2acd94d28c
tree960eaca9b3f3fab298c4570bcf90e7af8766cc71
parent59efb8cb5be759980f996fd95d462eeb47797c4e
[mips][compiler-rt] Provide 64bit atomic add and sub

r318733 introduced a build failure for native MIPS32 systems for xray due
to the lack of __sync_fetch_and_add / __syn_fetch_and_sub support. This patch
extends the existing support providing atomics so that xray can be
successfully built.

Reviewers: atanasyan, dberris

Differential Revision: https://reviews.llvm.org/D40385

llvm-svn: 321260
compiler-rt/lib/sanitizer_common/sanitizer_atomic_clang.h
compiler-rt/lib/sanitizer_common/sanitizer_atomic_clang_mips.h [new file with mode: 0644]
compiler-rt/lib/sanitizer_common/sanitizer_atomic_clang_other.h