pub enum TargetId {
Scalar,
Avx2,
Avx512,
Neon,
}Expand description
Runtime-selectable SIMD target token for tests and benchmark harnesses.
TargetId is a closed identifier for Hermes’ public CPU targets. Use
TargetId::is_supported before entering a target-specific benchmark row,
or call dispatch_view_to / dispatch_view_mut_to to construct a typed
view only when the host can execute that target.
Variants§
Scalar
Portable scalar target; always supported.
Avx2
x86/x86_64 AVX2 target, requiring AVX2 and FMA.
Avx512
x86/x86_64 AVX-512F target.
Neon
AArch64 NEON target.
Implementations§
Trait Implementations§
impl Copy for TargetId
impl Eq for TargetId
impl StructuralPartialEq for TargetId
Auto Trait Implementations§
impl Freeze for TargetId
impl RefUnwindSafe for TargetId
impl Send for TargetId
impl Sync for TargetId
impl Unpin for TargetId
impl UnsafeUnpin for TargetId
impl UnwindSafe for TargetId
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more