Closed
Description
@llvm.prefetch(i8* <address>, i32 <rw>, i32 <locality>, i32 <cache type>)
Possible syntax:
pub const FetchType = enum {
Read,
Write
}
pub const CacheType = enum {
Instruction,
Data
}
pub const Locality = enum {
No,
...,
...,
Extremely
}
@prefetch(comptime fetchType: FetchType,
comptime cacheType: CacheType,
comptime locality: Locality,
ptr: var) noreturn
Related: #767