llvm icon indicating copy to clipboard operation
llvm copied to clipboard

Add the remaining diagnostics to device_global implementation

Open schittir opened this issue 3 years ago • 3 comments

This PR is a follow up to PR #5597 to implement the diagnostics not covered in #5597

As it stands currently, this PR includes implementation for cases described in this documentation and their templated versions - https://github.com/intel/llvm/blob/sycl/sycl/doc/extensions/proposed/sycl_ext_oneapi_device_global.asciidoc#restrictions-on-creating-device-global-objects except the shadow variable/namespace case. Specifically, it covers five cases where device_global is declared as a private member inside a struct and within methods inside struct, their template versions/instantiation and inside a shadow namespace.

Work in progress - shadow variable/namespace case. Description to be updated once that is done.

schittir avatar Mar 15 '22 07:03 schittir

@schittir could you please update the PR description with a list of all required diagnostics for device_global. Please mention which of these have already been implemented in the previous patch and which ones are covered in this patch. If any are yet to be implemented, please include that as well.

elizabethandrews avatar May 12 '22 16:05 elizabethandrews

@schittir could you please update the PR description with a list of all required diagnostics for device_global. Please mention which of these have already been implemented in the previous patch and which ones are covered in this patch. If any are yet to be implemented, please include that as well.

@schittir can you update the PR description ASAP. It will help with review and I can start looking into diagnostics already implemented in this PR.

elizabethandrews avatar May 19 '22 18:05 elizabethandrews

@schittir could you please update the PR description with a list of all required diagnostics for device_global. Please mention which of these have already been implemented in the previous patch and which ones are covered in this patch. If any are yet to be implemented, please include that as well.

@schittir could you please update the PR description with a list of all required diagnostics for device_global. Please mention which of these have already been implemented in the previous patch and which ones are covered in this patch. If any are yet to be implemented, please include that as well.

@schittir can you update the PR description ASAP. It will help with review and I can start looking into diagnostics already implemented in this PR.

@elizabethandrews You should see the description updated now. Sorry I mistakenly thought that I already did that. Also I didn't think that it was holding you from reviewing it. Please take a look and let me know if anything else needs to be clarified. Thank you!

schittir avatar May 19 '22 19:05 schittir

IIUC, you haven't implemented support for shadowed device_global variables right?

elizabethandrews avatar Aug 11 '22 16:08 elizabethandrews

Failing test is unrelated and was disabled separately.

steffenlarsen avatar Aug 30 '22 18:08 steffenlarsen