[all-commits] [llvm/llvm-project] e3446b: [OpenACC] Fix bug with worker/vector/gang clause i...
Erich Keane via All-commits
all-commits at lists.llvm.org
Wed Dec 4 10:35:14 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e3446b9a079f1d911c96ae84d899d9ccd55a9951
https://github.com/llvm/llvm-project/commit/e3446b9a079f1d911c96ae84d899d9ccd55a9951
Author: erichkeane <ekeane at nvidia.com>
Date: 2024-12-04 (Wed, 04 Dec 2024)
Changed paths:
M clang/lib/Sema/SemaOpenACC.cpp
M clang/test/SemaOpenACC/loop-construct-gang-clause.cpp
M clang/test/SemaOpenACC/loop-construct-worker-clause.cpp
Log Message:
-----------
[OpenACC] Fix bug with worker/vector/gang clause inside another
The original implementation rejected some valid constructs. The rule is
supposed to be:
Gang-on-Kernel cannot have a gang in its region
Worker cannot have a worker or gang in its region
Vector cannot have worker, gang, or vector in its region.
The previous implementation improperly implemented that vector wasnt'
allowed in the other two. This patch fixes it and adds testing for it.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list