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

Method append_block

crates/rustc_codegen_spirv/src/builder/builder_methods.rs:743–750  ·  view source on GitHub ↗

FIXME(eddyb) change `Self::Function` to be more like a function index.

(
        cx: &'a Self::CodegenCx,
        llfn: Self::Function,
        _name: &str,
    )

Source from the content-addressed store, hash-verified

741
742 // FIXME(eddyb) change `Self::Function` to be more like a function index.
743 fn append_block(
744 cx: &'a Self::CodegenCx,
745 llfn: Self::Function,
746 _name: &str,
747 ) -> Self::BasicBlock {
748 let cursor_fn = cx.builder.select_function_by_id(llfn.def_cx(cx));
749 cx.emit_with_cursor(cursor_fn).begin_block(None).unwrap()
750 }
751
752 fn append_sibling_block(&mut self, _name: &str) -> Self::BasicBlock {
753 self.emit_with_cursor(BuilderCursor {

Callers

nothing calls this directly

Calls 3

select_function_by_idMethod · 0.80
def_cxMethod · 0.80
emit_with_cursorMethod · 0.80

Tested by

no test coverage detected