pub struct Options {
pub level: OptLevel,
pub toggles: Vec<(String, bool)>,
pub fuel: HashMap<String, u32>,
pub dumps: Dumps,
pub verify: bool,
}Expand description
What the command line asked the optimizer for.
Fields§
§level: OptLevelWhich pipeline to start from.
toggles: Vec<(String, bool)>The passes -f<name> added and -fno-<name> removed, in the order they were given, so
that the last mention of a pass is the one that decides.
fuel: HashMap<String, u32>What -fpass-fuel=<pass>=<n> limited, by pass name.
dumps: DumpsWhat -fdump-ir= asked to see.
verify: boolWhether the verifier runs after every pass that changed anything.
Implementations§
Trait Implementations§
impl Eq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more