[PATCH] D157140: [clang][Sema][OpenMP] Fix capture region for 'target teams loop'

David Pagan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 4 14:16:04 PDT 2023


ddpagan created this revision.
ddpagan added a reviewer: ABataev.
ddpagan added projects: clang, OpenMP.
Herald added subscribers: guansong, yaxunl.
Herald added a project: All.
ddpagan requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: cfe-commits, jplehr, sstefan1.

The capture region for 'target teams loop' should be the same as that for 'target teams distribute parallel for' with an 'if(target:val)'. For this
specific case, there should be no capture region.

Updated test results for OpenMP/target_teams_generic_loop_if_codegen.cpp


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D157140

Files:
  clang/lib/Sema/SemaOpenMP.cpp
  clang/test/OpenMP/target_teams_generic_loop_if_codegen.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157140.547345.patch
Type: text/x-patch
Size: 14970 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230804/24a5b97f/attachment-0001.bin>


More information about the cfe-commits mailing list