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

Function check

cranelift/frontend/src/frontend.rs:1319–1327  ·  view source on GitHub ↗
(func: &Function, expected_ir: &str)

Source from the content-addressed store, hash-verified

1317
1318 #[track_caller]
1319 fn check(func: &Function, expected_ir: &str) {
1320 let expected_ir = expected_ir.trim();
1321 let actual_ir = func.display().to_string();
1322 let actual_ir = actual_ir.trim();
1323 assert!(
1324 expected_ir == actual_ir,
1325 "Expected:\n{expected_ir}\nGot:\n{actual_ir}"
1326 );
1327 }
1328
1329 /// Helper function to construct a fixed frontend configuration.
1330 fn systemv_frontend_config() -> TargetFrontendConfig {

Callers 10

memcpyFunction · 0.70
small_memcpyFunction · 0.70
not_so_small_memcpyFunction · 0.70
small_memsetFunction · 0.70
not_so_small_memsetFunction · 0.70
memcmpFunction · 0.70
small_memcmp_helperFunction · 0.70
undef_vector_varsFunction · 0.70
try_callFunction · 0.70

Calls 2

to_stringMethod · 0.45
displayMethod · 0.45

Tested by 9

memcpyFunction · 0.56
small_memcpyFunction · 0.56
not_so_small_memcpyFunction · 0.56
small_memsetFunction · 0.56
not_so_small_memsetFunction · 0.56
memcmpFunction · 0.56
undef_vector_varsFunction · 0.56
try_callFunction · 0.56