Multi-register value support: framework for Values wider than machine regs.
This will allow for support for `I128` values everywhere, and `I64` values on 32-bit targets (e.g., ARM32 and x86-32). It does not alter the machine backends to build such support; it just adds the framework for the MachInst backends to *reason* about a `Value` residing in more than one register.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
//! Miscellaneous helpers for machine backends.
|
||||
|
||||
use super::{InsnOutput, LowerCtx, VCodeInst};
|
||||
use super::{InsnOutput, LowerCtx, VCodeInst, ValueRegs};
|
||||
use crate::ir::Type;
|
||||
use regalloc::{Reg, Writable};
|
||||
|
||||
@@ -23,6 +23,6 @@ pub(crate) fn ty_has_float_or_vec_representation(ty: Type) -> bool {
|
||||
pub(crate) fn get_output_reg<I: VCodeInst, C: LowerCtx<I = I>>(
|
||||
ctx: &mut C,
|
||||
spec: InsnOutput,
|
||||
) -> Writable<Reg> {
|
||||
) -> ValueRegs<Writable<Reg>> {
|
||||
ctx.get_output(spec.insn, spec.output)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user