(
_cgcx: &CodegenContext<Self>,
thin_module: ThinModule<Self>,
)
| 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>, |