INNER CODE UNIT · Rust
prepare_thin
EmbarkStudios/rust-gpu · crates/rustc_codegen_spirv/src/lib.rs:382
fn prepare_thin(module: ModuleCodegen<Self::Module>) -> (String, Self::ThinBuffer) {
(module.name, SpirvThinBuffer(module.module_llvm))
}
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!()