[BOLT] Change mutex implementation
authorElvina Yakubova <elvina.yakubova@huawei.com>
Wed, 6 Jul 2022 05:19:22 +0000 (08:19 +0300)
committerElvina Yakubova <elvina.yakubova@huawei.com>
Wed, 6 Jul 2022 05:19:54 +0000 (08:19 +0300)
commit35155a0716784c54b9d0113bce3f12c62af91a70
tree7b56a54cc6de9335437186885472ac4cee559bd4
parent484b4f3579808386b6b9314be1e841ffe3d769a6
[BOLT] Change mutex implementation

Changed acquire implemetaion to __atomic_test_and_set() and release
to __atomic_clear() so it eliminates inline asm usage and is arch
independent.

Elvina Yakubova,
Advanced Software Technology Lab, Huawei

Reviewers: yota9, maksfb, rafauler

Differential Revision: https://reviews.llvm.org/D129162
bolt/runtime/common.h