INNER CODE UNIT · Rust
Some
EmbarkStudios/rust-gpu · crates/rustc_codegen_spirv/src/lib.rs:445
if let Some(_entry) = maybe_create_entry_wrapper::<Builder<'_, '_>>(&cx) {
// attributes::sanitize(&cx, SanitizerSet::empty(), entry);
}
};
if let Some(path) = &cx.codegen_args.dump_module_on_panic {
let module_dumper = DumpModuleOnPanic { cx: &cx, path };
with_no_trimmed_paths!(do_codegen());
drop(module_dumper);
} else {
with_no_trimmed_paths!(do_codegen());
}
let spirv_module = cx.finalize_module().assemble();
(
ModuleCodegen {
name: cgu_name.to_string(),
module_llvm: spirv_module,
kind: ModuleKind::Regular,