[−][src]Struct rustc_codegen_ssa::mir::block::TerminatorCodegenHelper

pub(in mir::block) struct TerminatorCodegenHelper<'tcx> {
    bb: BasicBlock,
    terminator: &'tcx Terminator<'tcx>,
    funclet_bb: Option<BasicBlock>,
}

Used by FunctionCx::codegen_terminator for emitting common patterns e.g., creating a basic block, calling a function, etc.

Fields

bb: BasicBlockterminator: &'tcx Terminator<'tcx>funclet_bb: Option<BasicBlock>

Implementations

impl<'a, 'tcx> TerminatorCodegenHelper<'tcx>[src]

pub(in mir::block) fn funclet<'b, Bx: BuilderMethods<'a, 'tcx>>(
    &self,
    fx: &'b mut FunctionCx<'a, 'tcx, Bx>
) -> Option<&'b Bx::Funclet>
[src]

Returns the associated funclet from FunctionCx::funclets for the funclet_bb member if it is not None.

pub(in mir::block) fn lltarget<Bx: BuilderMethods<'a, 'tcx>>(
    &self,
    fx: &mut FunctionCx<'a, 'tcx, Bx>,
    target: BasicBlock
) -> (Bx::BasicBlock, bool)
[src]

pub(in mir::block) fn llblock<Bx: BuilderMethods<'a, 'tcx>>(
    &self,
    fx: &mut FunctionCx<'a, 'tcx, Bx>,
    target: BasicBlock
) -> Bx::BasicBlock
[src]

Create a basic block.

pub(in mir::block) fn funclet_br<Bx: BuilderMethods<'a, 'tcx>>(
    &self,
    fx: &mut FunctionCx<'a, 'tcx, Bx>,
    bx: &mut Bx,
    target: BasicBlock
)
[src]

pub(in mir::block) fn do_call<Bx: BuilderMethods<'a, 'tcx>>(
    &self,
    fx: &mut FunctionCx<'a, 'tcx, Bx>,
    bx: &mut Bx,
    fn_abi: FnAbi<'tcx, Ty<'tcx>>,
    fn_ptr: Bx::Value,
    llargs: &[Bx::Value],
    destination: Option<(ReturnDest<'tcx, Bx::Value>, BasicBlock)>,
    cleanup: Option<BasicBlock>
)
[src]

Call fn_ptr of fn_abi with the arguments llargs, the optional return destination destination and the cleanup function cleanup.

pub(in mir::block) fn maybe_sideeffect<Bx: BuilderMethods<'a, 'tcx>>(
    &self,
    mir: &'tcx Body<'tcx>,
    bx: &mut Bx,
    targets: &[BasicBlock]
)
[src]

Auto Trait Implementations

impl<'tcx> !RefUnwindSafe for TerminatorCodegenHelper<'tcx>

impl<'tcx> !Send for TerminatorCodegenHelper<'tcx>

impl<'tcx> !Sync for TerminatorCodegenHelper<'tcx>

impl<'tcx> Unpin for TerminatorCodegenHelper<'tcx>

impl<'tcx> !UnwindSafe for TerminatorCodegenHelper<'tcx>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.