mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 07:36:06 +00:00

OpenACC Github PR#499 defines the pqr-list as having at least 1 item. We already handle that for all but 'wait', so this patch just does the work to add it for 'wait', plus adds tests.
23 lines
643 B
C++
23 lines
643 B
C++
// RUN: %clang_cc1 -fopenacc -ast-print %s -o - | FileCheck %s
|
|
|
|
void uses() {
|
|
int *iPtr;
|
|
int I;
|
|
float array[5];
|
|
|
|
// CHECK: #pragma acc wait if(I == array[I])
|
|
#pragma acc wait if(I == array[I])
|
|
|
|
// CHECK: #pragma acc wait(*iPtr, I) async
|
|
#pragma acc wait(*iPtr, I) async
|
|
|
|
// CHECK: #pragma acc wait(queues: *iPtr, I) async(*iPtr)
|
|
#pragma acc wait(queues:*iPtr, I) async(*iPtr)
|
|
|
|
// CHECK: #pragma acc wait(devnum: I : *iPtr, I) async(I)
|
|
#pragma acc wait(devnum:I:*iPtr, I) async(I)
|
|
|
|
// CHECK: #pragma acc wait(devnum: I : queues: *iPtr, I) if(I == array[I]) async(I)
|
|
#pragma acc wait(devnum:I:queues:*iPtr, I) if(I == array[I]) async(I)
|
|
}
|