function
prefetch
prefetch[params: PrefetchOptions, type: DType, address_space: AddressSpace](addr: DTypePointer[type, address_space])
Prefetches an instruction or data into cache before it is used.
The prefetch function provides prefetching hints for the target to prefetch instruction or data into cache before they are used.
Parameters:
- params (
PrefetchOptions
): Configuration options for the prefect intrinsic. - type (
DType
): The DType of value stored in addr. - address_space (
AddressSpace
): The address space of the pointer.
Args:
- addr (
DTypePointer[type, address_space]
): The data pointer to prefetch.