Skip to content

Commit 5f8416f

Browse files
committed
Add tracking issue for ARM hint intrinsics
1 parent bb29bce commit 5f8416f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

crates/core_arch/src/arm_shared/hints.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// LLVM says "instruction requires: armv6k"
1212
#[cfg(any(target_feature = "v6", target_arch = "aarch64", doc))]
1313
#[inline(always)]
14+
#[unstable(feature = "stdarch_arm_hints", issue = "117218")]
1415
pub unsafe fn __wfi() {
1516
hint(HINT_WFI);
1617
}
@@ -24,6 +25,7 @@ pub unsafe fn __wfi() {
2425
// LLVM says "instruction requires: armv6k"
2526
#[cfg(any(target_feature = "v6", target_arch = "aarch64", doc))]
2627
#[inline(always)]
28+
#[unstable(feature = "stdarch_arm_hints", issue = "117218")]
2729
pub unsafe fn __wfe() {
2830
hint(HINT_WFE);
2931
}
@@ -36,6 +38,7 @@ pub unsafe fn __wfe() {
3638
// LLVM says "instruction requires: armv6k"
3739
#[cfg(any(target_feature = "v6", target_arch = "aarch64", doc))]
3840
#[inline(always)]
41+
#[unstable(feature = "stdarch_arm_hints", issue = "117218")]
3942
pub unsafe fn __sev() {
4043
hint(HINT_SEV);
4144
}
@@ -52,6 +55,7 @@ pub unsafe fn __sev() {
5255
doc,
5356
))]
5457
#[inline(always)]
58+
#[unstable(feature = "stdarch_arm_hints", issue = "117218")]
5559
pub unsafe fn __sevl() {
5660
hint(HINT_SEVL);
5761
}
@@ -65,6 +69,7 @@ pub unsafe fn __sevl() {
6569
// LLVM says "instruction requires: armv6k"
6670
#[cfg(any(target_feature = "v6", target_arch = "aarch64", doc))]
6771
#[inline(always)]
72+
#[unstable(feature = "stdarch_arm_hints", issue = "117218")]
6873
pub unsafe fn __yield() {
6974
hint(HINT_YIELD);
7075
}
@@ -76,6 +81,7 @@ pub unsafe fn __yield() {
7681
/// another instruction. It is not guaranteed that inserting this instruction
7782
/// will increase execution time.
7883
#[inline(always)]
84+
#[unstable(feature = "stdarch_arm_hints", issue = "117218")]
7985
pub unsafe fn __nop() {
8086
crate::arch::asm!("nop", options(nomem, nostack, preserves_flags));
8187
}

crates/core_arch/src/arm_shared/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ mod barrier;
5757
pub use self::barrier::*;
5858

5959
mod hints;
60+
#[unstable(feature = "stdarch_arm_hints", issue = "117218")]
6061
pub use self::hints::*;
6162

6263
mod crc;

0 commit comments

Comments
 (0)