Path: blob/main/cranelift/codegen/src/isa/s390x/lower.rs
1693 views
//! Lowering rules for S390x.12use crate::ir::Inst as IRInst;3use crate::isa::s390x::S390xBackend;4use crate::isa::s390x::inst::Inst;5use crate::machinst::{InstOutput, Lower, LowerBackend, MachLabel};67pub mod isle;89//=============================================================================10// Lowering-backend trait implementation.1112impl LowerBackend for S390xBackend {13type MInst = Inst;1415fn lower(&self, ctx: &mut Lower<Inst>, ir_inst: IRInst) -> Option<InstOutput> {16isle::lower(ctx, self, ir_inst)17}1819fn lower_branch(20&self,21ctx: &mut Lower<Inst>,22ir_inst: IRInst,23targets: &[MachLabel],24) -> Option<()> {25isle::lower_branch(ctx, self, ir_inst, targets)26}2728type FactFlowState = ();29}303132