Skip to content

Commit 1fe11bc

Browse files
gnzlbgalexcrichton
authored andcommitted
expose nvptx in core::arch (#574)
1 parent 66f568c commit 1fe11bc

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

stdsimd/mod.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@
187187
/// * [`mips64`]
188188
/// * [`powerpc`]
189189
/// * [`powerpc64`]
190+
/// * [`nvptx`]
190191
///
191192
/// [`x86`]: x86/index.html
192193
/// [`x86_64`]: x86_64/index.html
@@ -196,6 +197,7 @@
196197
/// [`mips64`]: mips64/index.html
197198
/// [`powerpc`]: powerpc/index.html
198199
/// [`powerpc64`]: powerpc64/index.html
200+
/// [`nvptx`]: nvptx/index.html
199201
///
200202
/// # Examples
201203
///
@@ -380,6 +382,10 @@ pub mod arch {
380382
#[unstable(feature = "stdsimd", issue = "27731")]
381383
pub use coresimd::arch::powerpc64;
382384

385+
#[cfg(all(not(dox), any(target_arch = "nvptx", target_arch = "nvptx64")))]
386+
#[unstable(feature = "stdsimd", issue = "27731")]
387+
pub use coresimd::arch::nvptx;
388+
383389
#[doc(hidden)] // unstable implementation detail
384390
#[unstable(feature = "stdsimd", issue = "27731")]
385391
pub mod detect;
@@ -479,4 +485,16 @@ pub mod arch {
479485
#[doc(cfg(target_arch = "powerpc64"))]
480486
#[unstable(feature = "stdsimd", issue = "27731")]
481487
pub mod powerpc64 {}
488+
489+
/// Platform-specific intrinsics for the `nvptx` platform.
490+
///
491+
/// The documentation with the full listing of `nvptx` intrinsics is
492+
/// available in [libcore], but the module is re-exported here in std
493+
/// as well.
494+
///
495+
/// [libcore]: ../../../core/arch/nvptx/index.html
496+
#[cfg(dox)]
497+
#[doc(cfg(any(target_arch = "nvptx", target_arch = "nvptx64")))]
498+
#[unstable(feature = "stdsimd", issue = "27731")]
499+
pub mod nvptx {}
482500
}

0 commit comments

Comments
 (0)