Sha256: 43a2f3b81ba5c921dc6e053a5b49bacf826b8373e815b89004edb862764f2174

Contents?: true

Size: 932 Bytes

Versions: 17

Compression:

Stored size: 932 Bytes

Contents

//! Lowering rules for Riscv64.
use crate::ir::Inst as IRInst;
use crate::isa::riscv64::inst::*;
use crate::isa::riscv64::Riscv64Backend;
use crate::machinst::lower::*;
use crate::machinst::*;
pub mod isle;

//=============================================================================
// Lowering-backend trait implementation.

impl LowerBackend for Riscv64Backend {
    type MInst = Inst;

    fn lower(&self, ctx: &mut Lower<Inst>, ir_inst: IRInst) -> Option<InstOutput> {
        isle::lower(ctx, self, ir_inst)
    }

    fn lower_branch(
        &self,
        ctx: &mut Lower<Inst>,
        ir_inst: IRInst,
        targets: &[MachLabel],
    ) -> Option<()> {
        isle::lower_branch(ctx, self, ir_inst, targets)
    }

    fn maybe_pinned_reg(&self) -> Option<Reg> {
        // pinned register is a register that you want put anything in it.
        // right now riscv64 not support this feature.
        None
    }
}

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
wasmtime-14.0.4 ./ext/cargo-vendor/cranelift-codegen-0.101.4/src/isa/riscv64/lower.rs
wasmtime-14.0.3 ./ext/cargo-vendor/cranelift-codegen-0.101.4/src/isa/riscv64/lower.rs
wasmtime-14.0.1 ./ext/cargo-vendor/cranelift-codegen-0.101.1/src/isa/riscv64/lower.rs
wasmtime-14.0.0 ./ext/cargo-vendor/cranelift-codegen-0.101.1/src/isa/riscv64/lower.rs
wasmtime-13.0.0 ./ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/riscv64/lower.rs
wasmtime-12.0.1 ./ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/riscv64/lower.rs
wasmtime-12.0.0 ./ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/riscv64/lower.rs
wasmtime-11.0.0 ./ext/cargo-vendor/cranelift-codegen-0.98.1/src/isa/riscv64/lower.rs
wasmtime-10.0.1 ./ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/riscv64/lower.rs
wasmtime-10.0.0 ./ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/riscv64/lower.rs
wasmtime-9.0.4 ./ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/riscv64/lower.rs
wasmtime-9.0.1 ./ext/cargo-vendor/cranelift-codegen-0.96.1/src/isa/riscv64/lower.rs
wasmtime-8.0.0 ./ext/cargo-vendor/cranelift-codegen-0.95.0/src/isa/riscv64/lower.rs
wasmtime-7.0.0 ./ext/cargo-vendor/cranelift-codegen-0.94.0/src/isa/riscv64/lower.rs
wasmtime-6.0.1 ./ext/cargo-vendor/cranelift-codegen-0.93.1/src/isa/riscv64/lower.rs
wasmtime-6.0.0 ./ext/cargo-vendor/cranelift-codegen-0.93.0/src/isa/riscv64/lower.rs
wasmtime-5.0.0 ./ext/cargo-vendor/cranelift-codegen-0.92.0/src/isa/riscv64/lower.rs