Skip to content

Commit bb29bce

Browse files
committed
Add tracking issue for AArch64 prefetch intrinsic
1 parent 244db78 commit bb29bce

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

crates/core_arch/src/aarch64/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ mod crc;
2222
pub use self::crc::*;
2323

2424
mod prefetch;
25+
#[unstable(feature = "stdarch_aarch64_prefetch", issue = "117217")]
2526
pub use self::prefetch::*;
2627

2728
#[stable(feature = "neon_intrinsics", since = "1.59.0")]

crates/core_arch/src/aarch64/prefetch.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,27 @@ extern "unadjusted" {
77
}
88

99
/// See [`prefetch`](fn._prefetch.html).
10+
#[unstable(feature = "stdarch_aarch64_prefetch", issue = "117217")]
1011
pub const _PREFETCH_READ: i32 = 0;
1112

1213
/// See [`prefetch`](fn._prefetch.html).
14+
#[unstable(feature = "stdarch_aarch64_prefetch", issue = "117217")]
1315
pub const _PREFETCH_WRITE: i32 = 1;
1416

1517
/// See [`prefetch`](fn._prefetch.html).
18+
#[unstable(feature = "stdarch_aarch64_prefetch", issue = "117217")]
1619
pub const _PREFETCH_LOCALITY0: i32 = 0;
1720

1821
/// See [`prefetch`](fn._prefetch.html).
22+
#[unstable(feature = "stdarch_aarch64_prefetch", issue = "117217")]
1923
pub const _PREFETCH_LOCALITY1: i32 = 1;
2024

2125
/// See [`prefetch`](fn._prefetch.html).
26+
#[unstable(feature = "stdarch_aarch64_prefetch", issue = "117217")]
2227
pub const _PREFETCH_LOCALITY2: i32 = 2;
2328

2429
/// See [`prefetch`](fn._prefetch.html).
30+
#[unstable(feature = "stdarch_aarch64_prefetch", issue = "117217")]
2531
pub const _PREFETCH_LOCALITY3: i32 = 3;
2632

2733
/// Fetch the cache line that contains address `p` using the given `RW` and `LOCALITY`.
@@ -64,6 +70,7 @@ pub const _PREFETCH_LOCALITY3: i32 = 3;
6470
#[cfg_attr(test, assert_instr("prfm pstl2keep", RW = _PREFETCH_WRITE, LOCALITY = _PREFETCH_LOCALITY2))]
6571
#[cfg_attr(test, assert_instr("prfm pstl1keep", RW = _PREFETCH_WRITE, LOCALITY = _PREFETCH_LOCALITY3))]
6672
#[rustc_legacy_const_generics(1, 2)]
73+
#[unstable(feature = "stdarch_aarch64_prefetch", issue = "117217")]
6774
// FIXME: Replace this with the standard ACLE __pld/__pldx/__pli/__plix intrinsics
6875
pub unsafe fn _prefetch<const RW: i32, const LOCALITY: i32>(p: *const i8) {
6976
// We use the `llvm.prefetch` intrinsic with `cache type` = 1 (data cache).

0 commit comments

Comments
 (0)