[−][src]Struct cranelift_codegen_meta::cdsl::instructions::InstructionContent
Fields
name: String
Instruction mnemonic, also becomes opcode name.
camel_name: String
opcode_number: OpcodeNumber
doc: String
Documentation string.
operands_in: Vec<Operand>
Input operands. This can be a mix of SSA value operands and other operand kinds.
operands_out: Vec<Operand>
Output operands. The output operands must be SSA values or variable_args
.
constraints: Vec<Constraint>
Instruction-specific TypeConstraints.
format: Rc<InstructionFormat>
Instruction format, automatically derived from the input operands.
polymorphic_info: Option<PolymorphicInfo>
One of the input or output operands is a free type variable. None if the instruction is not polymorphic, set otherwise.
value_opnums: Vec<usize>
Indices in operands_in of input operands that are values.
imm_opnums: Vec<usize>
Indices in operands_in of input operands that are immediates or entities.
value_results: Vec<usize>
Indices in operands_out of output operands that are values.
is_terminator: bool
True for instructions that terminate the block.
is_branch: bool
True for all branch or jump instructions.
is_indirect_branch: bool
True for all indirect branch or jump instructions.',
is_call: bool
Is this a call instruction?
is_return: bool
Is this a return instruction?
is_ghost: bool
Is this a ghost instruction?
can_load: bool
Can this instruction read from memory?
can_store: bool
Can this instruction write to memory?
can_trap: bool
Can this instruction cause a trap?
other_side_effects: bool
Does this instruction have other side effects besides can_* flags?
writes_cpu_flags: bool
Does this instruction write to CPU flags?
Methods
impl InstructionContent
[src]
pub fn snake_name(&self) -> &str
[src]
pub fn all_typevars(&self) -> Vec<&TypeVar>
[src]
Trait Implementations
impl Debug for InstructionContent
[src]
impl Display for InstructionContent
[src]
Auto Trait Implementations
impl !RefUnwindSafe for InstructionContent
impl !Send for InstructionContent
impl !Sync for InstructionContent
impl Unpin for InstructionContent
impl !UnwindSafe for InstructionContent
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,