Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytecodealliance/wasmtime
/ label
Function
label
cranelift/codegen/src/machinst/buffer.rs:2561–2563 ·
view source on GitHub ↗
(n: u32)
Source
from the content-addressed store, hash-verified
2559
use crate::settings;
2560
2561
fn label(n: u32) -> MachLabel {
2562
MachLabel::from_block(BlockIndex::new(n as usize))
2563
}
2564
fn target(n: u32) -> BranchTarget {
2565
BranchTarget::Label(label(n))
2566
}
Callers
12
target
Function · 0.85
test_elide_jump_to_next
Function · 0.85
test_elide_trivial_jump_blocks
Function · 0.85
test_flip_cond
Function · 0.85
test_island
Function · 0.85
test_island_backward
Function · 0.85
test_multiple_redirect
Function · 0.85
test_handle_branch_cycle
Function · 0.85
metadata_records
Function · 0.85
test_many_constants_in_one_block
Function · 0.85
test_short_branch_amid_constants
Function · 0.85
test_mid_block_island_via_gen_jump
Function · 0.85
Calls
1
new
Function · 0.50
Tested by
11
test_elide_jump_to_next
Function · 0.68
test_elide_trivial_jump_blocks
Function · 0.68
test_flip_cond
Function · 0.68
test_island
Function · 0.68
test_island_backward
Function · 0.68
test_multiple_redirect
Function · 0.68
test_handle_branch_cycle
Function · 0.68
metadata_records
Function · 0.68
test_many_constants_in_one_block
Function · 0.68
test_short_branch_amid_constants
Function · 0.68
test_mid_block_island_via_gen_jump
Function · 0.68