Home
last modified time | relevance | path

Searched refs:OptLevel (Results 1 – 16 of 16) sorted by relevance

/wasmtime-44.0.1/benches/
H A Dcompile.rs16 opt_level: Option<OptLevel>,
28 Some(OptLevel::None) => "none", in fmt()
29 Some(OptLevel::Speed) => "speed", in fmt()
30 Some(OptLevel::SpeedAndSize) => "speed_and_size", in fmt()
39 fn new(compiler: Strategy, opt_level: Option<OptLevel>) -> Self { in new()
48 Scenario::new(Strategy::Cranelift, Some(OptLevel::None)), in list()
49 Scenario::new(Strategy::Cranelift, Some(OptLevel::Speed)), in list()
50 Scenario::new(Strategy::Cranelift, Some(OptLevel::SpeedAndSize)), in list()
/wasmtime-44.0.1/crates/fuzzing/src/generators/
H A Dconfig.rs571 opt_level: OptLevel,
826 enum OptLevel { enum
832 impl OptLevel { implementation
833 fn to_wasmtime(&self) -> wasmtime::OptLevel { in to_wasmtime() argument
835 OptLevel::None => wasmtime::OptLevel::None, in to_wasmtime()
836 OptLevel::Speed => wasmtime::OptLevel::Speed, in to_wasmtime()
837 OptLevel::SpeedAndSize => wasmtime::OptLevel::SpeedAndSize, in to_wasmtime()
/wasmtime-44.0.1/crates/cli-flags/src/
H A Dopt.rs474 impl WasmtimeOptionValue for wasmtime::OptLevel { implementation
478 "0" => Ok(wasmtime::OptLevel::None), in parse()
479 "1" => Ok(wasmtime::OptLevel::Speed), in parse()
480 "2" => Ok(wasmtime::OptLevel::Speed), in parse()
481 "s" => Ok(wasmtime::OptLevel::SpeedAndSize), in parse()
488 wasmtime::OptLevel::None => f.write_str("0"), in display()
489 wasmtime::OptLevel::Speed => f.write_str("2"), in display()
490 wasmtime::OptLevel::SpeedAndSize => f.write_str("s"), in display()
H A Dlib.rs50 pub opt_level: Option<wasmtime::OptLevel>,
1190 use wasmtime::{OptLevel, RegallocAlgorithm};
1215 ("0", Some(OptLevel::None)), in from_toml()
1216 ("1", Some(OptLevel::Speed)), in from_toml()
1217 ("2", Some(OptLevel::Speed)), in from_toml()
1218 ("\"s\"", Some(OptLevel::SpeedAndSize)), in from_toml()
/wasmtime-44.0.1/examples/fib-debug/
H A Dmain.rs20 .cranelift_opt_level(OptLevel::None), in main()
/wasmtime-44.0.1/crates/wasmtime/src/engine/
H A Dserialization.rs472 use crate::{Cache, Config, Module, OptLevel};
701 cfg.cranelift_opt_level(OptLevel::None) in cache_accounts_for_opt_level()
717 cfg.cranelift_opt_level(OptLevel::Speed) in cache_accounts_for_opt_level()
733 cfg.cranelift_opt_level(OptLevel::SpeedAndSize) in cache_accounts_for_opt_level()
776 cfg.cranelift_opt_level(OptLevel::None); in precompile_compatibility_key_accounts_for_opt_level()
778 cfg.cranelift_opt_level(OptLevel::Speed); in precompile_compatibility_key_accounts_for_opt_level()
/wasmtime-44.0.1/cranelift/fuzzgen/src/
H A Dlib.rs3 use crate::settings::{Flags, OptLevel};
178 let opt = self.u.choose(OptLevel::all())?; in generate_flags()
/wasmtime-44.0.1/cranelift/codegen/src/
H A Dcontext.rs25 use crate::settings::{FlagsOrIsa, OptLevel};
185 if opt_level != OptLevel::None { in optimize()
H A Dsettings.rs525 assert_eq!(f.opt_level(), super::OptLevel::None); in display_default()
565 assert_eq!(f.opt_level(), super::OptLevel::Speed); in modify_string()
/wasmtime-44.0.1/crates/c-api/src/
H A Dconfig.rs10 Config, InstanceAllocationStrategy, LinearMemory, MemoryCreator, OptLevel, ProfilingStrategy,
203 WASMTIME_OPT_LEVEL_NONE => OptLevel::None, in wasmtime_config_cranelift_opt_level_set()
204 WASMTIME_OPT_LEVEL_SPEED => OptLevel::Speed, in wasmtime_config_cranelift_opt_level_set()
205 WASMTIME_OPT_LEVEL_SPEED_AND_SIZE => OptLevel::SpeedAndSize, in wasmtime_config_cranelift_opt_level_set()
/wasmtime-44.0.1/tests/
H A Ddisas.rs53 CodeBuilder, CodeHint, Engine, OptLevel, Result, Strategy, bail, error::Context as _,
202 config.cranelift_opt_level(OptLevel::None); in compile()
/wasmtime-44.0.1/crates/c-api/include/wasmtime/
H A Dconfig.hh25 enum class OptLevel { enum
456 void cranelift_opt_level(OptLevel level) { in cranelift_opt_level()
/wasmtime-44.0.1/tests/all/
H A Dstack_overflow.rs154 config.cranelift_opt_level(OptLevel::None); in big_stack_works_ok()
H A Dmodule.rs248 config.cranelift_opt_level(OptLevel::None); in large_add_chain_no_stack_overflow()
/wasmtime-44.0.1/crates/c-api/tests/
H A Dconfig.cc58 config.cranelift_opt_level(OptLevel::Speed); in TEST()
/wasmtime-44.0.1/crates/wasmtime/src/
H A Dconfig.rs1405 pub fn cranelift_opt_level(&mut self, level: OptLevel) -> &mut Self { in cranelift_opt_level()
1407 OptLevel::None => "none", in cranelift_opt_level()
1408 OptLevel::Speed => "speed", in cranelift_opt_level()
1409 OptLevel::SpeedAndSize => "speed_and_size", in cranelift_opt_level()
3295 pub enum OptLevel { enum