Skip to content

template.ArgumentAccess enum

← Attribute reference

Shallow access bound for a buffer or view parameter and its aliases. Explicit bounds prohibit escape and asynchronous use. They neither make referenced objects immutable nor imply noalias or initialization.

Cases

Keyword Value Description
unspecified 0 No argument-specific bound.
read 1 May read the parameter's storage during the call.
write 2 May write the parameter's storage during the call.
read_write 3 May read and write the parameter's storage during the call.
none 4 May inspect shape and identity without accessing storage.

Used by

  • template.decl.signature_flags
  • template.def.signature_flags
  • template.ukernel.signature_flags