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

Method verify_if

cranelift/codegen/src/context.rs:264–270  ·  view source on GitHub ↗

Run the verifier only if the `enable_verifier` setting is true.

(&self, fisa: FOI)

Source from the content-addressed store, hash-verified

262
263 /// Run the verifier only if the `enable_verifier` setting is true.
264 pub fn verify_if<'a, FOI: Into<FlagsOrIsa<'a>>>(&self, fisa: FOI) -> CodegenResult<()> {
265 let fisa = fisa.into();
266 if fisa.flags.enable_verifier() {
267 self.verify(fisa)?;
268 }
269 Ok(())
270 }
271
272 /// Perform constant-phi removal on the function.
273 pub fn remove_constant_phis<'a, FOI: Into<FlagsOrIsa<'a>>>(

Callers 6

compile_stencilMethod · 0.80
remove_constant_phisMethod · 0.80
canonicalize_nansMethod · 0.80
legalizeMethod · 0.80
egraph_passMethod · 0.80

Calls 2

OkFunction · 0.85
verifyMethod · 0.45

Tested by

no test coverage detected