MCPcopy Create free account
hub / github.com/Rust-GPU/rust-gpu / optimize_thin

Method optimize_thin

crates/rustc_codegen_spirv/src/lib.rs:337–349  ·  view source on GitHub ↗
(
        _cgcx: &CodegenContext<Self>,
        thin_module: ThinModule<Self>,
    )

Source from the content-addressed store, hash-verified

335 }
336
337 unsafe fn optimize_thin(
338 _cgcx: &CodegenContext<Self>,
339 thin_module: ThinModule<Self>,
340 ) -> Result<ModuleCodegen<Self::Module>, FatalError> {
341 let module = ModuleCodegen {
342 module_llvm: spirv_tools::binary::to_binary(thin_module.data())
343 .unwrap()
344 .to_vec(),
345 name: thin_module.name().to_string(),
346 kind: ModuleKind::Regular,
347 };
348 Ok(module)
349 }
350
351 fn optimize_fat(
352 _: &CodegenContext<Self>,

Callers

nothing calls this directly

Calls 1

dataMethod · 0.80

Tested by

no test coverage detected