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

Method def_cx

crates/rustc_codegen_spirv/src/builder_spirv.rs:114–116  ·  view source on GitHub ↗

def and def_cx are separated, because Builder has a span associated with what it's currently emitting.

(self, cx: &CodegenCx<'_>)

Source from the content-addressed store, hash-verified

112 // def and def_cx are separated, because Builder has a span associated with
113 // what it's currently emitting.
114 pub fn def_cx(self, cx: &CodegenCx<'_>) -> Word {
115 self.def_with_span(cx, DUMMY_SP)
116 }
117
118 pub fn def_with_span(self, cx: &CodegenCx<'_>, span: Span) -> Word {
119 match self.kind {

Callers 15

defMethod · 0.80
get_fn_addrMethod · 0.80
constant_intMethod · 0.80
const_strMethod · 0.80
const_structMethod · 0.80
scalar_to_backendMethod · 0.80
const_data_from_allocMethod · 0.80
const_ptrcastMethod · 0.80
create_const_alloc2Method · 0.80
shader_entry_stubMethod · 0.80
declare_fn_extMethod · 0.80
get_staticMethod · 0.80

Calls 1

def_with_spanMethod · 0.80

Tested by

no test coverage detected