[OpenMP] Misc. changes that add or remove pointer/bound checks
authorHansang Bae <hansang.bae@intel.com>
Thu, 11 Mar 2021 23:34:06 +0000 (17:34 -0600)
committerHansang Bae <hansang.bae@intel.com>
Tue, 23 Mar 2021 23:55:08 +0000 (18:55 -0500)
commit467f39249dbb6953f2f95ba68a52b20fb24b91af
tree073a7165c4e0a2c72ec9e601ea9ccc946957e32b
parent4259301aaf58c13b004d968dfbd20428bf978b32
[OpenMP] Misc. changes that add or remove pointer/bound checks

-- Added or moved checks to appropriate places.
-- Removed ineffective null check where the pointer is already being
   dereferenced around the code.
-- Initialized variables that can be used without definitions.
-- Added call to dlclose/FreeLibrary in OMPT tool activation.
-- Added a new build compiler definition.

Differential Revision: https://reviews.llvm.org/D98584
openmp/runtime/src/kmp_barrier.cpp
openmp/runtime/src/kmp_dispatch.cpp
openmp/runtime/src/kmp_runtime.cpp
openmp/runtime/src/kmp_sched.cpp
openmp/runtime/src/kmp_settings.cpp
openmp/runtime/src/kmp_tasking.cpp
openmp/runtime/src/kmp_version.cpp
openmp/runtime/src/ompt-general.cpp
openmp/runtime/src/ompt-specific.h