[−][src]Struct rustc_mir::transform::inline::Inliner
Fields
tcx: TyCtxt<'tcx>source: MirSource<'tcx>Implementations
impl<'tcx> Inliner<'tcx>[src]
fn run_pass(&self, caller_body: &mut Body<'tcx>)[src]
fn get_valid_function_call(
&self,
bb: BasicBlock,
bb_data: &BasicBlockData<'tcx>,
caller_body: &Body<'tcx>,
param_env: ParamEnv<'tcx>
) -> Option<CallSite<'tcx>>[src]
&self,
bb: BasicBlock,
bb_data: &BasicBlockData<'tcx>,
caller_body: &Body<'tcx>,
param_env: ParamEnv<'tcx>
) -> Option<CallSite<'tcx>>
fn consider_optimizing(
&self,
callsite: CallSite<'tcx>,
callee_body: &Body<'tcx>
) -> bool[src]
&self,
callsite: CallSite<'tcx>,
callee_body: &Body<'tcx>
) -> bool
fn should_inline(
&self,
callsite: CallSite<'tcx>,
callee_body: &Body<'tcx>
) -> bool[src]
&self,
callsite: CallSite<'tcx>,
callee_body: &Body<'tcx>
) -> bool
fn inline_call(
&self,
callsite: CallSite<'tcx>,
caller_body: &mut Body<'tcx>,
callee_body: Body<'tcx>
) -> bool[src]
&self,
callsite: CallSite<'tcx>,
caller_body: &mut Body<'tcx>,
callee_body: Body<'tcx>
) -> bool
fn make_call_args(
&self,
args: Vec<Operand<'tcx>>,
callsite: &CallSite<'tcx>,
caller_body: &mut Body<'tcx>
) -> Vec<Local>[src]
&self,
args: Vec<Operand<'tcx>>,
callsite: &CallSite<'tcx>,
caller_body: &mut Body<'tcx>
) -> Vec<Local>
fn create_temp_if_necessary(
&self,
arg: Operand<'tcx>,
callsite: &CallSite<'tcx>,
caller_body: &mut Body<'tcx>
) -> Local[src]
&self,
arg: Operand<'tcx>,
callsite: &CallSite<'tcx>,
caller_body: &mut Body<'tcx>
) -> Local
If arg is already a temporary, returns it. Otherwise, introduces a fresh
temporary T and an instruction T = arg, and returns T.
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for Inliner<'tcx>
impl<'tcx> !Send for Inliner<'tcx>
impl<'tcx> !Sync for Inliner<'tcx>
impl<'tcx> Unpin for Inliner<'tcx>
impl<'tcx> !UnwindSafe for Inliner<'tcx>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.