Function classify_instruction

Source
pub fn classify_instruction(
    instruction: &Instruction<'_>,
) -> (InstructionType, SwapDirection)
Expand description

Classify an instruction to determine its type and swap direction. Returns a tuple of (InstructionType, SwapDirection). For instructions that don’t have a swap direction, a dummy SwapDirection value is used. The InstructionType will always be correct or None.