[Openmp-commits] [PATCH] D110441: [OpenMP][GNU] Usage of TASK_TIED constant inside kmp_gsupport.cpp

Vladimir Inđić via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri Sep 24 12:43:28 PDT 2021


vladaindjic created this revision.
vladaindjic added a reviewer: AndreyChurbanov.
Herald added subscribers: guansong, yaxunl.
vladaindjic requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: openmp-commits, sstefan1.
Herald added a project: OpenMP.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D110441

Files:
  openmp/runtime/src/kmp_gsupport.cpp


Index: openmp/runtime/src/kmp_gsupport.cpp
===================================================================
--- openmp/runtime/src/kmp_gsupport.cpp
+++ openmp/runtime/src/kmp_gsupport.cpp
@@ -1234,7 +1234,7 @@
 
   // 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 @@
   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) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110441.374932.patch
Type: text/x-patch
Size: 766 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210924/fb3ee50a/attachment.bin>


More information about the Openmp-commits mailing list