HomePhabricator

[compiler-rt] Implement __atomic_is_lock_free

Authored by arichardson on Jan 8 2021, 3:53 AM.

Description

[compiler-rt] Implement __atomic_is_lock_free

This function is called by the __atomic_is_lock_free() builtin if the value
cannot be resolved to true at compile time. Lack of this function is
causing the non-lockfree atomics tests in libc++ to not be run (see D91911)

This function is also added in D85044, but that review also adds support
for using lock-free atomics in more cases, whereas this is a minimal change
that just adds __atomic_is_lock_free() for the implementation of atomic.c.

Reviewed By: ldionne

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

Details

Committed
arichardsonJan 8 2021, 4:48 AM
Reviewer
ldionne
Differential Revision
D92302: [compiler-rt] Implement __atomic_is_lock_free
Parents
rG99c84af1a25a: [VE][NFC] Clean ISel patterns for LSV and LVS
Branches
Unknown
Tags
Unknown