MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / new

Method new

cranelift/codegen/src/machinst/lower.rs:50–52  ·  view source on GitHub ↗
(n: u32)

Source from the content-addressed store, hash-verified

48struct InstColor(u32);
49impl InstColor {
50 fn new(n: u32) -> InstColor {
51 InstColor(n)
52 }
53
54 /// Get an arbitrary index representing this color. The index is unique
55 /// *within a single function compilation*, but indices may be reused across

Callers

nothing calls this directly

Calls 15

InstColorClass · 0.85
has_lowering_side_effectFunction · 0.85
is_constant_64bitFunction · 0.85
compute_use_statesFunction · 0.85
OkFunction · 0.85
num_valuesMethod · 0.80
blocksMethod · 0.80
block_instsMethod · 0.80
only_regMethod · 0.80
newFunction · 0.50
lenMethod · 0.45

Tested by

no test coverage detected