[PATCH] D141010: OpenMPOpt: Check nested parallelism in target region

Rafael Herrera via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 4 12:02:44 PST 2023


randreshg created this revision.
randreshg added reviewers: jdoerfert, jhuber6, tianshilei1992.
Herald added subscribers: ormris, guansong, hiraditya, yaxunl.
Herald added a project: All.
randreshg requested review of this revision.
Herald added subscribers: llvm-commits, sstefan1.
Herald added a project: LLVM.

Analysis that determines if a parallel region can reach another parallel region in any target region of the TU.
A new global var is emitted with the name of the kernel + "_nested_parallelism", which is either 0 or 1 depending on the result.


Repository:
  rOMP OpenMP

https://reviews.llvm.org/D141010

Files:
  llvm/lib/Transforms/IPO/OpenMPOpt.cpp
  llvm/test/Transforms/OpenMP/nested_parallelism.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141010.486358.patch
Type: text/x-patch
Size: 34854 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230104/33a37529/attachment.bin>


More information about the llvm-commits mailing list