From 5fe42723768ada4fc02a19d3f67d75943ba9d62c Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Tue, 24 Jul 2018 11:02:33 -0500 Subject: [PATCH] generate docs for Cortex-M / Cortex-R intrinsics (#536) --- library/stdarch/coresimd/arm/cmsis.rs | 4 ++-- library/stdarch/coresimd/arm/mod.rs | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/library/stdarch/coresimd/arm/cmsis.rs b/library/stdarch/coresimd/arm/cmsis.rs index 8f150d2cb0a7..e1913df67d5f 100644 --- a/library/stdarch/coresimd/arm/cmsis.rs +++ b/library/stdarch/coresimd/arm/cmsis.rs @@ -164,7 +164,7 @@ pub unsafe fn __set_PRIMASK(pri_mask: u32) { asm!("msr PRIMASK, $0" : : "r"(pri_mask) : : "volatile"); } -#[cfg(target_feature = "v7")] +#[cfg(any(target_feature = "v7", dox))] mod v7 { /// Enable FIQ /// @@ -245,7 +245,7 @@ mod v7 { } } -#[cfg(target_feature = "v7")] +#[cfg(any(target_feature = "v7", dox))] pub use self::v7::*; /* Core instruction access */ diff --git a/library/stdarch/coresimd/arm/mod.rs b/library/stdarch/coresimd/arm/mod.rs index fa768d950a09..224c242e45e8 100644 --- a/library/stdarch/coresimd/arm/mod.rs +++ b/library/stdarch/coresimd/arm/mod.rs @@ -7,9 +7,9 @@ //! [arm_dat]: https://developer.arm.com/technologies/neon/intrinsics #![allow(non_camel_case_types)] -#[cfg(target_feature = "mclass")] +#[cfg(any(target_feature = "mclass", dox))] mod cmsis; -#[cfg(target_feature = "mclass")] +#[cfg(any(target_feature = "mclass", dox))] pub use self::cmsis::*; mod v6; @@ -20,9 +20,9 @@ mod v7; #[cfg(any(target_arch = "aarch64", target_feature = "v7"))] pub use self::v7::*; -#[cfg(all(target_feature = "v7", not(target_feature = "mclass")))] +#[cfg(any(all(target_feature = "v7", not(target_feature = "mclass")), dox))] mod dsp; -#[cfg(all(target_feature = "v7", not(target_feature = "mclass")))] +#[cfg(any(all(target_feature = "v7", not(target_feature = "mclass")), dox))] pub use self::dsp::*; // NEON is supported on AArch64, and on ARM when built with the v7 and neon