pub struct Inliner {
pub size_limit: usize,
pub max_inline_depth: usize,
pub hot_loop_bonus: usize,
}Expand description
Function inlining pass.
Set size_limit to control the maximum callee body size (number of
non-terminator instructions) that will be inlined. The default is 50.
Fields§
§size_limit: usizePublic API for size_limit.
max_inline_depth: usizeMaximum number of inlining rounds per module run.
hot_loop_bonus: usizeExtra inline budget for callsites inside loop blocks.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Inliner
impl RefUnwindSafe for Inliner
impl Send for Inliner
impl Sync for Inliner
impl Unpin for Inliner
impl UnsafeUnpin for Inliner
impl UnwindSafe for Inliner
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