Enum wasmer::CpuFeature [−][src]
pub enum CpuFeature {
Show 14 variants
SSE2,
SSE3,
SSSE3,
SSE41,
SSE42,
POPCNT,
AVX,
BMI1,
BMI2,
AVX2,
AVX512DQ,
AVX512VL,
AVX512F,
LZCNT,
}
Expand description
The nomenclature is inspired by the cpuid
crate.
The list of supported features was initially retrieved from
cranelift-native
.
The CpuFeature
enum values are likely to grow closer to the
original cpuid
. However, we prefer to start small and grow from there.
If you would like to use a flag that doesn’t exist yet here, please open a PR.
Variants
SSE2
SSE3
SSSE3
SSE41
SSE42
POPCNT
AVX
BMI1
BMI2
AVX2
AVX512DQ
AVX512VL
AVX512F
LZCNT
Implementations
Retrieves the features for the current Host
Retrieves an empty set of CpuFeature
s.
Trait Implementations
type Output = EnumSet<CpuFeature>
type Output = EnumSet<CpuFeature>
The resulting type after applying the &
operator.
type Output = EnumSet<CpuFeature>
type Output = EnumSet<CpuFeature>
The resulting type after applying the |
operator.
type Output = EnumSet<CpuFeature>
type Output = EnumSet<CpuFeature>
The resulting type after applying the ^
operator.
type Err = ParseCpuFeatureError
type Err = ParseCpuFeatureError
The associated error which can be returned from parsing.
Parses a string s
to return a value of this type. Read more
type Output = EnumSet<CpuFeature>
type Output = EnumSet<CpuFeature>
The resulting type after applying the !
operator.
type Output = EnumSet<CpuFeature>
type Output = EnumSet<CpuFeature>
The resulting type after applying the -
operator.
Auto Trait Implementations
impl RefUnwindSafe for CpuFeature
impl Send for CpuFeature
impl Sync for CpuFeature
impl Unpin for CpuFeature
impl UnwindSafe for CpuFeature
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more