[all-commits] [llvm/llvm-project] 63f809: [OpenMP] libomp: add check of task function pointe...

Andrey Churbanov via All-commits all-commits at lists.llvm.org
Mon Oct 18 09:48:47 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 63f8099e233c37bae1dcf2629ec62db8de6cc356
      https://github.com/llvm/llvm-project/commit/63f8099e233c37bae1dcf2629ec62db8de6cc356
  Author: AndreyChurbanov <andrey.churbanov at intel.com>
  Date:   2021-10-18 (Mon, 18 Oct 2021)

  Changed paths:
    M openmp/runtime/src/kmp_tasking.cpp
    A openmp/runtime/test/tasking/kmp_taskwait_nowait.c

  Log Message:
  -----------
  [OpenMP] libomp: add check of task function pointer for NULL.

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.

Differential Revision: https://reviews.llvm.org/D112015




More information about the All-commits mailing list