[PATCH] D71989: [OpenMP][IRBuilder][WIP] Prototype `omp task` support

Joachim Protze via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 17 06:00:29 PST 2020


protze.joachim added a comment.

Please consider the special cases of task_if0, which preferably should use `__kmpc_omp_task_with_deps`:

- `#pragma omp task if(0) depend(out:A) detach(event)` : the detached undeferred task needs the out dependency to release the dependency only when detach is fulfilled
- `#pragma omp task if(0) depend(inoutmutexset:A)` : the undeferred task can execute mutually exclusive with any other `inoutmutexset:A` task.

I'm not sure that these are all the special cases.

See the bugs for full OpenMP code examples:

https://bugs.llvm.org/show_bug.cgi?id=46185
https://bugs.llvm.org/show_bug.cgi?id=46193


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D71989/new/

https://reviews.llvm.org/D71989



More information about the llvm-commits mailing list