llvm
llvm copied to clipboard
[SYCL][DOC] Add extension for annotated_ptr class and its properties
Introduce three new extensions:
-
sycl_ext_oneapi_annotated_ptr
Introduces a pointer wrapper class that provides a mechanism to attach compile-time constant information to a pointer in a manner that allows the compiler to reliably maintain and analyze the information. -
sycl_ext_intel_fpga_kernel_arg_properties
Defines additional supported properties forannotated_ptr
andannotated_arg
classes. This commit will remove the extensionsycl_ext_intel_fpga_annotated_arg_properties
. -
sycl_ext_oneapi_kernel_arg_restrict_property
Defines therestrict
property forannotated_ptr
andannotated_arg
classes in a separate extension rather than including it insycl_ext_intel_fpga_kernel_arg_properties
so that vendors can support the property without having to support FPGA specific properties.
This commit also updates the annotated_arg extension to remove function overloads that are not needed.
Working on:
- [x] Double check that extension aligns with latest template.
- [x] Update the properties syntax based on recent changes to the design of compile-time properties.
@gmlueck , @GarveyJoe Please do another round of review. I have addressed your comments and added FPGA properties as a separate extension.
ping @intel/dpcpp-specification-reviewers
ping https://github.com/orgs/intel/teams/dpcpp-specification-reviewers
We just had a meeting about this yesterday, so I presume the next step is that @tiwaria1 will update this PR.
There are currently common properties defined in both annotated_ptr
and annotated_arg
, this will need to be cleaned up and consolidated.
There are currently common properties defined in both
annotated_ptr
andannotated_arg
, this will need to be cleaned up and consolidated.
I have cleaned this up.
I think we should fold the changes in https://github.com/intel/llvm/pull/5656 into this change. Please let me know if anyone disagrees.
Hi @steffenlarsen all major comments have been addressed, please review this for merging. Addressing one minor review comment is remaining - I will address it today.
@tiwaria1 - Could you please address @jessicadavies-intel's last comment, then I'm happy with this.
I'd like to take another look at this since it's been a while since my last review. I promise to do this by Thursday or Friday of this week.
@tiwaria1 - Could you please address @jessicadavies-intel's last comment, then I'm happy with this.
I added a note in the property description.
Hi @steffenlarsen @Pennycook Please let me know your thoughts on this PR. Thanks!