Enum wasmer::CpuFeature[][src]

pub enum CpuFeature {
    SSE2,
    SSE3,
    SSSE3,
    SSE41,
    SSE42,
    POPCNT,
    AVX,
    BMI1,
    BMI2,
    AVX2,
    AVX512DQ,
    AVX512VL,
    AVX512F,
    LZCNT,
}

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

impl CpuFeature[src]

pub fn for_host() -> EnumSet<CpuFeature>[src]

Retrieves the features for the current Host

pub fn set() -> EnumSet<CpuFeature>[src]

Retrieves an empty set of CpuFeatures.

Trait Implementations

impl<O> BitAnd<O> for CpuFeature where
    O: Into<EnumSet<CpuFeature>>, 
[src]

type Output = EnumSet<CpuFeature>

The resulting type after applying the & operator.

impl<O> BitOr<O> for CpuFeature where
    O: Into<EnumSet<CpuFeature>>, 
[src]

type Output = EnumSet<CpuFeature>

The resulting type after applying the | operator.

impl<O> BitXor<O> for CpuFeature where
    O: Into<EnumSet<CpuFeature>>, 
[src]

type Output = EnumSet<CpuFeature>

The resulting type after applying the ^ operator.

impl Clone for CpuFeature[src]

impl Copy for CpuFeature[src]

impl Debug for CpuFeature[src]

impl EnumSetType for CpuFeature[src]

impl Eq for CpuFeature[src]

impl FromStr for CpuFeature[src]

type Err = ParseCpuFeatureError

The associated error which can be returned from parsing.

impl Hash for CpuFeature[src]

impl Not for CpuFeature[src]

type Output = EnumSet<CpuFeature>

The resulting type after applying the ! operator.

impl PartialEq<CpuFeature> for CpuFeature[src]

impl PartialEq<EnumSet<CpuFeature>> for CpuFeature[src]

impl<O> Sub<O> for CpuFeature where
    O: Into<EnumSet<CpuFeature>>, 
[src]

type Output = EnumSet<CpuFeature>

The resulting type after applying the - operator.

impl ToString for CpuFeature[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,