[Openmp-commits] [PATCH] D112015: [OpenMP] libomp: add check of task function pointer for NULL

Andrey Churbanov via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Oct 18 09:32:44 PDT 2021


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

This patch allows to simplify compiler implementation on "taskwait nowait" construct.
The "taskwait nowait" is semantically equivalent to the empty task.
Instead of creating an empty routine as a task entry, compiler can just send NULL pointer to the runtime.
Then the runtime will make all the work with dependences and return because of the absent task routine.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D112015

Files:
  openmp/runtime/src/kmp_tasking.cpp
  openmp/runtime/test/tasking/kmp_taskwait_nowait.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112015.380442.patch
Type: text/x-patch
Size: 3472 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20211018/d2f1f093/attachment.bin>


More information about the Openmp-commits mailing list