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

Method is_pristine

cranelift/frontend/src/frontend.rs:800–802  ·  view source on GitHub ↗

Returns `true` if and only if no instructions have been added since the last call to [`switch_to_block`](Self::switch_to_block).

(&self, block: Block)

Source from the content-addressed store, hash-verified

798 /// Returns `true` if and only if no instructions have been added since the last call to
799 /// [`switch_to_block`](Self::switch_to_block).
800 fn is_pristine(&self, block: Block) -> bool {
801 self.func_ctx.status[block] == BlockStatus::Empty
802 }
803
804 /// Returns `true` if and only if a terminator instruction has been inserted since the
805 /// last call to [`switch_to_block`](Self::switch_to_block).

Callers 3

ensure_inserted_blockMethod · 0.80
finalizeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected