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

Method encodable_as_bb

cranelift/codegen/src/verifier/mod.rs:440–445  ·  view source on GitHub ↗

Check that the given block can be encoded as a BB, by checking that only branching instructions are ending the block.

(&self, block: Block, errors: &mut VerifierErrors)

Source from the content-addressed store, hash-verified

438 /// Check that the given block can be encoded as a BB, by checking that only
439 /// branching instructions are ending the block.
440 fn encodable_as_bb(&self, block: Block, errors: &mut VerifierErrors) -> VerifierStepResult {
441 match self.func.is_block_basic(block) {
442 Ok(()) => Ok(()),
443 Err((inst, message)) => errors.fatal((inst, self.context(inst), message)),
444 }
445 }
446
447 fn block_integrity(
448 &self,

Callers 1

runMethod · 0.80

Calls 4

OkFunction · 0.85
is_block_basicMethod · 0.80
fatalMethod · 0.80
contextMethod · 0.45

Tested by

no test coverage detected