Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bytecodealliance
GitHub Repository: bytecodealliance/wasmtime
Path: blob/main/cranelift/codegen/src/machinst/inst_common.rs
1693 views
1
//! A place to park MachInst::Inst fragments which are common across multiple architectures.
2
3
use crate::ir::Inst as IRInst;
4
5
//============================================================================
6
// Instruction input "slots".
7
//
8
// We use these types to refer to operand numbers, and result numbers, together
9
// with the associated instruction, in a type-safe way.
10
11
/// Identifier for a particular input of an instruction.
12
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
13
pub struct InsnInput {
14
pub(crate) insn: IRInst,
15
pub(crate) input: usize,
16
}
17
18