INNER CODE UNIT · Rust

serialize_module

EmbarkStudios/rust-gpu · crates/rustc_codegen_spirv/src/lib.rs:386

    fn serialize_module(module: ModuleCodegen<Self::Module>) -> (String, Self::ModuleBuffer) {
        (module.name, SpirvModuleBuffer(module.module_llvm))
    }
}

impl ExtraBackendMethods for SpirvCodegenBackend {
    fn codegen_allocator(
        &self,
        _: TyCtxt<'_>,
        _: &str,
        _: AllocatorKind,
        _: AllocatorKind,
    ) -> Self::Module {
        todo!()
    }

    fn compile_codegen_unit(
        &self,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…