llvm-project
llvm-project copied to clipboard
OMP map clause restriction change from 4.5 to 5.0 on "list iterms of map clause in the same construnct must not share original storge"
| Bugzilla Link | 47368 |
| Version | 5.0 |
| OS | All |
Extended Description
OMP 4.5:
List items of map clauses in the same construct must not share original storage.
OMP 5.0:
List items of the map clauses on the same construct must not share original storage unless they are the same lvalue expression or array section.
So we should allow:
int scalar = 80; #pragma omp target map (alloc: scalar) map(to: scalar)