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

Method compile_vcode

cranelift/codegen/src/isa/x64/mod.rs:60–72  ·  view source on GitHub ↗
(
        &self,
        func: &Function,
        domtree: &DominatorTree,
        ctrl_plane: &mut ControlPlane,
    )

Source from the content-addressed store, hash-verified

58 }
59
60 fn compile_vcode(
61 &self,
62 func: &Function,
63 domtree: &DominatorTree,
64 ctrl_plane: &mut ControlPlane,
65 ) -> CodegenResult<(VCode<inst::Inst>, regalloc2::Output)> {
66 // This performs lowering to VCode, register-allocates the code, computes
67 // block layout and finalizes branches. The result is ready for binary emission.
68 let emit_info = EmitInfo::new(self.flags.clone(), self.x64_flags.clone());
69 let sigs = SigSet::new::<abi::X64ABIMachineSpec>(func, &self.flags)?;
70 let abi = abi::X64Callee::new(func, self, &self.x64_flags, &sigs)?;
71 compile::compile::<Self>(func, domtree, self, abi, emit_info, sigs, ctrl_plane)
72 }
73}
74
75impl TargetIsa for X64Backend {

Callers 1

compile_functionMethod · 0.45

Calls 2

newFunction · 0.50
cloneMethod · 0.45

Tested by

no test coverage detected