This patch enables private, firstprivate, and lastprivate clauses for the OpenMP distribute directive.
Regression tests differ from the similar case of the same clauses on the for directive, by removing a reference to two global variables g and g1. This is necessary because: 1. a distribute pragma is only allowed inside a target region; 2. referring a global variable (e.g. g and g1) in a target region requires the program to enclose the variable in a "declare target" region; 3. declare target pragmas, which are used to define a declare target region, are currently unavailable in clang (patch being prepared).
For this reason, I moved the global declarations into local variables.
Details
Details
- Reviewers
kkwli0 ABataev • fraggamuffin
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
[OPENMP] Add regression test for private clause and fix type size in regression test for lastprivate.