//! Lowering backend for Pulley.
pub mod isle;
use super::{inst::*, PulleyBackend, PulleyTargetKind};
use crate::{
ir,
machinst::{lower::*, *},
};
impl
LowerBackend for PulleyBackend
where
P: PulleyTargetKind,
{
type MInst = InstAndKind
;
fn lower(&self, ctx: &mut Lower, ir_inst: ir::Inst) -> Option {
isle::lower(ctx, self, ir_inst)
}
fn lower_branch(
&self,
ctx: &mut Lower,
ir_inst: ir::Inst,
targets: &[MachLabel],
) -> Option<()> {
isle::lower_branch(ctx, self, ir_inst, targets)
}
fn maybe_pinned_reg(&self) -> Option {
// Pulley does not support this feature right now.
None
}
type FactFlowState = ();
}