[Openmp-commits] [openmp] 5357a98 - [OpenMP] libomp: Usage of TASK_TIED constant inside kmp_gsupport.cpp
via Openmp-commits
openmp-commits at lists.llvm.org
Mon Sep 27 09:46:07 PDT 2021
Author: @vladaindjic
Date: 2021-09-27T19:45:56+03:00
New Revision: 5357a98c823a5262814e269db265b5d8e1f2c4f2
URL: https://github.com/llvm/llvm-project/commit/5357a98c823a5262814e269db265b5d8e1f2c4f2
DIFF: https://github.com/llvm/llvm-project/commit/5357a98c823a5262814e269db265b5d8e1f2c4f2.diff
LOG: [OpenMP] libomp: Usage of TASK_TIED constant inside kmp_gsupport.cpp
The minor code refactorization introduces the TASK_TIED constant inside
kmp_gsupprot.cpp as a replacement for the literal value 1.
The mentioned constant is now used in both kmp_tasking.cpp and
kmp_gsupport.cpp files.
Differential Revision: https://reviews.llvm.org/D110441
Added:
Modified:
openmp/runtime/src/kmp_gsupport.cpp
Removed:
################################################################################
diff --git a/openmp/runtime/src/kmp_gsupport.cpp b/openmp/runtime/src/kmp_gsupport.cpp
index 2fa156edebb97..d40022c04199f 100644
--- a/openmp/runtime/src/kmp_gsupport.cpp
+++ b/openmp/runtime/src/kmp_gsupport.cpp
@@ -1234,7 +1234,7 @@ void KMP_EXPAND_NAME(KMP_API_NAME_GOMP_TASK)(void (*func)(void *), void *data,
// The low-order bit is the "untied" flag
if (!(gomp_flags & KMP_GOMP_TASK_UNTIED_FLAG)) {
- input_flags->tiedness = 1;
+ input_flags->tiedness = TASK_TIED;
}
// The second low-order bit is the "final" flag
if (gomp_flags & KMP_GOMP_TASK_FINAL_FLAG) {
@@ -1766,7 +1766,7 @@ void __GOMP_taskloop(void (*func)(void *), void *data,
KMP_ASSERT(arg_align > 0);
// The low-order bit is the "untied" flag
if (!(gomp_flags & 1)) {
- input_flags->tiedness = 1;
+ input_flags->tiedness = TASK_TIED;
}
// The second low-order bit is the "final" flag
if (gomp_flags & 2) {
More information about the Openmp-commits
mailing list