[OpenMP] [Semantics] [Flang] Adding more semantic checks for USE_DEVICE_PTR...
[OpenMP] [Semantics] [Flang] Adding more semantic checks for USE_DEVICE_PTR and USE_DEVICE_ADDR clauses. The following restrictions for USE_DEVICE_PTR and USE_DEVICE_ADDR clauses on OMP TARGET DATA directive are implemented in this patch. - A list item may not be specified more than once in use_device_ptr clauses that appear on the directive. - A list item may not be specified more than once in use_device_addr clauses that appear on the directive. - A list item may not be specified in both a use_device_addr clause and a use_device_ptr clause on the directive. - A list item that appears in a use_device_ptr or use_device_addr clause must not be a structure element. - A list item that appears in a use_device_ptr must be of type C_PTR. Reviewed By: kiranchandramohan Differential Revision: https://reviews.llvm.org/D155133
Loading
Please sign in to comment