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

Method verify_alias_regions

cranelift/codegen/src/verifier/mod.rs:420–436  ·  view source on GitHub ↗
(&self, errors: &mut VerifierErrors)

Source from the content-addressed store, hash-verified

418 }
419
420 fn verify_alias_regions(&self, errors: &mut VerifierErrors) -> VerifierStepResult {
421 let mut seen_user_ids = crate::HashMap::new();
422 for (ar, ar_data) in self.func.dfg.alias_regions.iter() {
423 if let Some(&prev) = seen_user_ids.get(&ar_data.user_id) {
424 errors.report((
425 ar,
426 format!(
427 "duplicate alias region user_id {}: {} and {}",
428 ar_data.user_id, prev, ar
429 ),
430 ));
431 } else {
432 seen_user_ids.insert(ar_data.user_id, ar);
433 }
434 }
435 Ok(())
436 }
437
438 /// Check that the given block can be encoded as a BB, by checking that only
439 /// branching instructions are ending the block.

Callers 1

runMethod · 0.80

Calls 6

OkFunction · 0.85
newFunction · 0.50
iterMethod · 0.45
getMethod · 0.45
reportMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected