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

Method cranelift_regalloc_algorithm

crates/wasmtime/src/config.rs:1480–1489  ·  view source on GitHub ↗
(&mut self, algo: RegallocAlgorithm)

Source from the content-addressed store, hash-verified

1478 /// Panics if this configuration's compiler was [disabled][Config::enable_compiler].
1479 #[cfg(any(feature = "cranelift", feature = "winch"))]
1480 pub fn cranelift_regalloc_algorithm(&mut self, algo: RegallocAlgorithm) -> &mut Self {
1481 let val = match algo {
1482 RegallocAlgorithm::Backtracking => "backtracking",
1483 RegallocAlgorithm::SinglePass => "single_pass",
1484 };
1485 self.compiler_config_mut()
1486 .settings
1487 .insert("regalloc_algorithm".to_string(), val.to_string());
1488 self
1489 }
1490
1491 /// Configures whether Cranelift should perform a NaN-canonicalization pass.
1492 ///

Callers 1

big_stack_works_okFunction · 0.45

Calls 3

compiler_config_mutMethod · 0.80
insertMethod · 0.45
to_stringMethod · 0.45

Tested by

no test coverage detected