OSDN Git Service

[OpenMP] Use RTM lock for OMP lock with synchronization hint
authorHansang Bae <hansang.bae@intel.com>
Thu, 10 Dec 2020 00:25:26 +0000 (18:25 -0600)
committerHansang Bae <hansang.bae@intel.com>
Thu, 10 Dec 2020 01:14:53 +0000 (19:14 -0600)
commitc3b5009aa7f42ab8376b39d96e762e2d2e98ab5e
tree2088a04865a52716ea9f316a56d0196da44b480c
parentde4f5519015cc97f28718d90cc6dac73c0a15161
[OpenMP] Use RTM lock for OMP lock with synchronization hint

This patch introduces a new RTM lock type based on spin lock which is
used for OMP lock with speculative hint on supported architecture.

Differential Revision: https://reviews.llvm.org/D92615
openmp/runtime/src/kmp_csupport.cpp
openmp/runtime/src/kmp_lock.cpp
openmp/runtime/src/kmp_lock.h
openmp/runtime/src/kmp_runtime.cpp
openmp/runtime/src/kmp_settings.cpp