cranelift_codegen::isa::x64::settings

Struct Flags

Source
pub struct Flags { /* private fields */ }
Available on crate feature x86 only.
Expand description

Flags group x86.

Implementations§

Source§

impl Flags

Source

pub fn new(shared: &Flags, builder: &Builder) -> Self

Create flags x86 settings group.

Source§

impl Flags

Source

pub fn iter(&self) -> impl Iterator<Item = Value>

Iterates the setting values.

Source§

impl Flags

User-defined settings.

Source

pub fn predicate_view(&self) -> PredicateView<'_>

Get a view of the boolean predicates.

Source

pub fn has_sse3(&self) -> bool

Has support for SSE3. SSE3: CPUID.01H:ECX.SSE3[bit 0]

Source

pub fn has_ssse3(&self) -> bool

Has support for SSSE3. SSSE3: CPUID.01H:ECX.SSSE3[bit 9]

Source

pub fn has_cmpxchg16b(&self) -> bool

Has support for CMPXCHG16b. CMPXCHG16b: CPUID.01H:ECX.CMPXCHG16B[bit 13]

Source

pub fn has_sse41(&self) -> bool

Has support for SSE4.1. SSE4.1: CPUID.01H:ECX.SSE4_1[bit 19]

Source

pub fn has_sse42(&self) -> bool

Has support for SSE4.2. SSE4.2: CPUID.01H:ECX.SSE4_2[bit 20]

Source

pub fn has_avx(&self) -> bool

Has support for AVX. AVX: CPUID.01H:ECX.AVX[bit 28]

Source

pub fn has_avx2(&self) -> bool

Has support for AVX2. AVX2: CPUID.07H:EBX.AVX2[bit 5]

Source

pub fn has_fma(&self) -> bool

Has support for FMA. FMA: CPUID.01H:ECX.FMA[bit 12]

Source

pub fn has_avx512bitalg(&self) -> bool

Has support for AVX512BITALG. AVX512BITALG: CPUID.07H:ECX.AVX512BITALG[bit 12]

Source

pub fn has_avx512dq(&self) -> bool

Has support for AVX512DQ. AVX512DQ: CPUID.07H:EBX.AVX512DQ[bit 17]

Source

pub fn has_avx512vl(&self) -> bool

Has support for AVX512VL. AVX512VL: CPUID.07H:EBX.AVX512VL[bit 31]

Source

pub fn has_avx512vbmi(&self) -> bool

Has support for AVX512VMBI. AVX512VBMI: CPUID.07H:ECX.AVX512VBMI[bit 1]

Source

pub fn has_avx512f(&self) -> bool

Has support for AVX512F. AVX512F: CPUID.07H:EBX.AVX512F[bit 16]

Source

pub fn has_popcnt(&self) -> bool

Has support for POPCNT. POPCNT: CPUID.01H:ECX.POPCNT[bit 23]

Source

pub fn has_bmi1(&self) -> bool

Has support for BMI1. BMI1: CPUID.(EAX=07H, ECX=0H):EBX.BMI1[bit 3]

Source

pub fn has_bmi2(&self) -> bool

Has support for BMI2. BMI2: CPUID.(EAX=07H, ECX=0H):EBX.BMI2[bit 8]

Source

pub fn has_lzcnt(&self) -> bool

Has support for LZCNT. LZCNT: CPUID.EAX=80000001H:ECX.LZCNT[bit 5]

Source

pub fn use_avx(&self) -> bool

Computed predicate x86.has_avx().

Source

pub fn use_avx2(&self) -> bool

Computed predicate x86.has_avx() && x86.has_avx2().

Source

pub fn use_avx512bitalg(&self) -> bool

Computed predicate x86.has_avx512bitalg().

Source

pub fn use_avx512dq(&self) -> bool

Computed predicate x86.has_avx512dq().

Source

pub fn use_avx512f(&self) -> bool

Computed predicate x86.has_avx512f().

Source

pub fn use_avx512vbmi(&self) -> bool

Computed predicate x86.has_avx512vbmi().

Source

pub fn use_avx512vl(&self) -> bool

Computed predicate x86.has_avx512vl().

Source

pub fn use_bmi1(&self) -> bool

Computed predicate x86.has_bmi1().

Source

pub fn use_bmi2(&self) -> bool

Computed predicate x86.has_bmi2().

Source

pub fn use_cmpxchg16b(&self) -> bool

Computed predicate x86.has_cmpxchg16b().

Source

pub fn use_fma(&self) -> bool

Computed predicate x86.has_avx() && x86.has_fma().

Source

pub fn use_lzcnt(&self) -> bool

Computed predicate x86.has_lzcnt().

Source

pub fn use_popcnt(&self) -> bool

Computed predicate x86.has_popcnt() && x86.has_sse42().

Source

pub fn use_sse41(&self) -> bool

Computed predicate x86.has_sse41().

Source

pub fn use_sse42(&self) -> bool

Computed predicate x86.has_sse41() && x86.has_sse42().

Source

pub fn use_ssse3(&self) -> bool

Computed predicate x86.has_ssse3().

Trait Implementations§

Source§

impl Clone for Flags

Source§

fn clone(&self) -> Flags

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Display for Flags

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for Flags

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more

Auto Trait Implementations§

§

impl Freeze for Flags

§

impl RefUnwindSafe for Flags

§

impl Send for Flags

§

impl Sync for Flags

§

impl Unpin for Flags

§

impl UnwindSafe for Flags

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.