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

Method set_cold

cranelift/codegen/src/ir/layout.rs:359–361  ·  view source on GitHub ↗

Mark a block as "cold". This will try to move it out of the ordinary path of execution when lowered to machine code.

(&mut self, block: Block)

Source from the content-addressed store, hash-verified

357 /// This will try to move it out of the ordinary path of execution
358 /// when lowered to machine code.
359 pub fn set_cold(&mut self, block: Block) {
360 self.blocks[block].cold = true;
361 }
362
363 /// Is the given block cold?
364 pub fn is_cold(&self, block: Block) -> bool {

Callers 4

set_cold_blockMethod · 0.80
set_cold_blockMethod · 0.80
create_blocksFunction · 0.80
cold_blocksFunction · 0.80

Calls

no outgoing calls

Tested by 1

cold_blocksFunction · 0.64