Skip to content

Commit ed61939

Browse files
authored
[SYCL][DOC] Update pass to propagate sycl_declared (#7415)
1 parent d24549f commit ed61939

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sycl/doc/design/OptionalDeviceFeatures.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,10 @@ We add a new IR phase to the device compiler which does the following:
516516
aspects that come from references to types in the
517517
`sycl_types_that_use_aspects` list.
518518

519+
* If a function has the `!sycl_declared_aspects` metadata, creates (or augments)
520+
the function's `!sycl_used_aspects` metadata with aspects from the
521+
`!sycl_declared_aspects` list.
522+
519523
* Propagates each function's `!sycl_used_aspects` metadata up the static call
520524
graph so that each function lists the aspects used by that function and by
521525
any functions it calls.

0 commit comments

Comments
 (0)