cranelift_codegen/isa/riscv64/
lower.rs1use crate::ir::Inst as IRInst;
3use crate::isa::riscv64::Riscv64Backend;
4use crate::isa::riscv64::inst::*;
5use crate::machinst::*;
6pub mod isle;
7
8impl LowerBackend for Riscv64Backend {
12 type MInst = Inst;
13
14 fn lower(&self, ctx: &mut Lower<Inst>, ir_inst: IRInst) -> Option<InstOutput> {
15 isle::lower(ctx, self, ir_inst)
16 }
17
18 fn lower_branch(
19 &self,
20 ctx: &mut Lower<Inst>,
21 ir_inst: IRInst,
22 targets: &[MachLabel],
23 ) -> Option<()> {
24 isle::lower_branch(ctx, self, ir_inst, targets)
25 }
26
27 fn maybe_pinned_reg(&self) -> Option<Reg> {
28 None
31 }
32}