(&mut self, algo: RegallocAlgorithm)
| 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 | /// |
no test coverage detected