pub enum SpecConstantInstruction {
Show 39 variants VectorShuffle { vector_1: Id, vector_2: Id, components: Vec<u32>, }, CompositeExtract { composite: Id, indexes: Vec<u32>, }, CompositeInsert { object: Id, composite: Id, indexes: Vec<u32>, }, UConvert { unsigned_value: Id, }, SConvert { signed_value: Id, }, FConvert { float_value: Id, }, QuantizeToF16 { value: Id, }, SNegate { operand: Id, }, IAdd { operand1: Id, operand2: Id, }, ISub { operand1: Id, operand2: Id, }, IMul { operand1: Id, operand2: Id, }, UDiv { operand1: Id, operand2: Id, }, SDiv { operand1: Id, operand2: Id, }, UMod { operand1: Id, operand2: Id, }, SRem { operand1: Id, operand2: Id, }, SMod { operand1: Id, operand2: Id, }, LogicalEqual { operand1: Id, operand2: Id, }, LogicalNotEqual { operand1: Id, operand2: Id, }, LogicalOr { operand1: Id, operand2: Id, }, LogicalAnd { operand1: Id, operand2: Id, }, LogicalNot { operand: Id, }, Select { condition: Id, object_1: Id, object_2: Id, }, IEqual { operand1: Id, operand2: Id, }, INotEqual { operand1: Id, operand2: Id, }, UGreaterThan { operand1: Id, operand2: Id, }, SGreaterThan { operand1: Id, operand2: Id, }, UGreaterThanEqual { operand1: Id, operand2: Id, }, SGreaterThanEqual { operand1: Id, operand2: Id, }, ULessThan { operand1: Id, operand2: Id, }, SLessThan { operand1: Id, operand2: Id, }, ULessThanEqual { operand1: Id, operand2: Id, }, SLessThanEqual { operand1: Id, operand2: Id, }, ShiftRightLogical { base: Id, shift: Id, }, ShiftRightArithmetic { base: Id, shift: Id, }, ShiftLeftLogical { base: Id, shift: Id, }, BitwiseOr { operand1: Id, operand2: Id, }, BitwiseXor { operand1: Id, operand2: Id, }, BitwiseAnd { operand1: Id, operand2: Id, }, Not { operand: Id, },
}
Expand description

An instruction that is used as the operand of the SpecConstantOp instruction.

Variants§

§

VectorShuffle

Fields

§vector_1: Id
§vector_2: Id
§components: Vec<u32>
§

CompositeExtract

Fields

§composite: Id
§indexes: Vec<u32>
§

CompositeInsert

Fields

§object: Id
§composite: Id
§indexes: Vec<u32>
§

UConvert

Fields

§unsigned_value: Id
§

SConvert

Fields

§signed_value: Id
§

FConvert

Fields

§float_value: Id
§

QuantizeToF16

Fields

§value: Id
§

SNegate

Fields

§operand: Id
§

IAdd

Fields

§operand1: Id
§operand2: Id
§

ISub

Fields

§operand1: Id
§operand2: Id
§

IMul

Fields

§operand1: Id
§operand2: Id
§

UDiv

Fields

§operand1: Id
§operand2: Id
§

SDiv

Fields

§operand1: Id
§operand2: Id
§

UMod

Fields

§operand1: Id
§operand2: Id
§

SRem

Fields

§operand1: Id
§operand2: Id
§

SMod

Fields

§operand1: Id
§operand2: Id
§

LogicalEqual

Fields

§operand1: Id
§operand2: Id
§

LogicalNotEqual

Fields

§operand1: Id
§operand2: Id
§

LogicalOr

Fields

§operand1: Id
§operand2: Id
§

LogicalAnd

Fields

§operand1: Id
§operand2: Id
§

LogicalNot

Fields

§operand: Id
§

Select

Fields

§condition: Id
§object_1: Id
§object_2: Id
§

IEqual

Fields

§operand1: Id
§operand2: Id
§

INotEqual

Fields

§operand1: Id
§operand2: Id
§

UGreaterThan

Fields

§operand1: Id
§operand2: Id
§

SGreaterThan

Fields

§operand1: Id
§operand2: Id
§

UGreaterThanEqual

Fields

§operand1: Id
§operand2: Id
§

SGreaterThanEqual

Fields

§operand1: Id
§operand2: Id
§

ULessThan

Fields

§operand1: Id
§operand2: Id
§

SLessThan

Fields

§operand1: Id
§operand2: Id
§

ULessThanEqual

Fields

§operand1: Id
§operand2: Id
§

SLessThanEqual

Fields

§operand1: Id
§operand2: Id
§

ShiftRightLogical

Fields

§base: Id
§shift: Id
§

ShiftRightArithmetic

Fields

§base: Id
§shift: Id
§

ShiftLeftLogical

Fields

§base: Id
§shift: Id
§

BitwiseOr

Fields

§operand1: Id
§operand2: Id
§

BitwiseXor

Fields

§operand1: Id
§operand2: Id
§

BitwiseAnd

Fields

§operand1: Id
§operand2: Id
§

Not

Fields

§operand: Id

Trait Implementations§

source§

impl Clone for SpecConstantInstruction

source§

fn clone(&self) -> SpecConstantInstruction

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 Debug for SpecConstantInstruction

source§

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

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

impl PartialEq for SpecConstantInstruction

source§

fn eq(&self, other: &SpecConstantInstruction) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for SpecConstantInstruction

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. 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 Twhere 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 Twhere T: Clone,

§

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, U> TryFrom<U> for Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.