File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -603,18 +603,20 @@ types listed above.
603
603
604
604
Properties that are implemented using
605
605
` [[__sycl_detail__::add_ir_annotations_member()]] ` , are represented in LLVM IR
606
- as the fifth metadata parameter to the ` @llvm.ptr.annotation ` intrinsic
607
- function. This parameter is a tuple of metadata values with the following
608
- sequence:
606
+ as the fifth parameter to the ` @llvm.ptr.annotation ` intrinsic function. This
607
+ parameter is a pointer to a global variable with fields corresponding to the
608
+ names and values of the properties in the following sequence:
609
609
610
610
* Name of the first property
611
611
* Value of the first property
612
612
* Name of the second property
613
613
* Value of the second property
614
614
* Etc.
615
615
616
- Since metadata types are not limited to strings, there is no need to convert
617
- the property values to strings.
616
+ Every field in the global variable pointed to by this parameter are string
617
+ literals in seperate global variables. If the value of a property is either an
618
+ empty string or a ` nullptr ` , the corresponding field will have a null-pointer
619
+ value.
618
620
619
621
620
622
## Filtering properties
You can’t perform that action at this time.
0 commit comments