MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / gen_load_base_offset

Method gen_load_base_offset

cranelift/codegen/src/isa/x64/abi.rs:511–517  ·  view source on GitHub ↗
(into_reg: Writable<Reg>, base: Reg, offset: i32, ty: Type)

Source from the content-addressed store, hash-verified

509 }
510
511 fn gen_load_base_offset(into_reg: Writable<Reg>, base: Reg, offset: i32, ty: Type) -> Self::I {
512 // Only ever used for I64s, F128s and vectors; if that changes, see if
513 // the ExtKind below needs to be changed.
514 assert!(ty == I64 || ty.is_vector() || ty == F128);
515 let mem = Amode::imm_reg(offset, base);
516 Inst::load(ty, mem, into_reg, ExtKind::None)
517 }
518
519 fn gen_store_base_offset(base: Reg, offset: i32, from_reg: Reg, ty: Type) -> Self::I {
520 let ty = match ty {

Callers

nothing calls this directly

Calls 1

loadFunction · 0.50

Tested by

no test coverage detected