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

Function next_id

crates/rustc_codegen_spirv/src/linker/inline.rs:24–28  ·  view source on GitHub ↗

FIXME(eddyb) this is a bit silly, but this keeps being repeated everywhere.

(header: &mut ModuleHeader)

Source from the content-addressed store, hash-verified

22
23// FIXME(eddyb) this is a bit silly, but this keeps being repeated everywhere.
24fn next_id(header: &mut ModuleHeader) -> Word {
25 let result = header.bound;
26 header.bound += 1;
27 result
28}
29
30pub fn inline(sess: &Session, module: &mut Module) -> super::Result<()> {
31 // This algorithm gets real sad if there's recursion - but, good news, SPIR-V bans recursion

Callers 3

inlineFunction · 0.85
idMethod · 0.85
get_inlined_blocksMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected