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

Function has_dont_inline

crates/rustc_codegen_spirv/src/linker/inline.rs:367–371  ·  view source on GitHub ↗
(function: &Function)

Source from the content-addressed store, hash-verified

365}
366
367fn has_dont_inline(function: &Function) -> bool {
368 let def = function.def.as_ref().unwrap();
369 let control = def.operands[0].unwrap_function_control();
370 control.contains(FunctionControl::DONT_INLINE)
371}
372
373/// Helper error type for `should_inline` (see its doc comment).
374#[derive(Copy, Clone, PartialEq, Eq)]

Callers 1

inlineFunction · 0.85

Calls 1

as_refMethod · 0.45

Tested by

no test coverage detected