[PATCH] D106154: [WIP][AbstractAttributor] Fold __kmpc_parallel_level if possible
Shilei Tian via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 16 07:46:07 PDT 2021
tianshilei1992 created this revision.
tianshilei1992 added reviewers: jdoerfert, JonChesterfield, ggeorgakoudis, jhuber6.
Herald added subscribers: ormris, okura, uenoku, hiraditya.
Herald added a reviewer: uenoku.
tianshilei1992 requested review of this revision.
Herald added a reviewer: sstefan1.
Herald added subscribers: llvm-commits, bbn, sstefan1.
Herald added a reviewer: baziotis.
Herald added a project: LLVM.
Similar to D105787 <https://reviews.llvm.org/D105787>, this patch tries to fold `__kmpc_parallel_level` if possible.
Note that `__kmpc_parallel_level` doesn't take activeness into consideration,
based on current `deviceRTLs`, its return value can be such as 0, 1, 2, instead
of 0, 129, 130, etc. that also indicate activeness.
TODOs:
- Important parts are still missing when merging parallel levels from caller.
- Test is still missing.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D106154
Files:
llvm/lib/Transforms/IPO/OpenMPOpt.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106154.359320.patch
Type: text/x-patch
Size: 7102 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210716/4a942e38/attachment.bin>
More information about the llvm-commits
mailing list