[−][src]Struct rustc_codegen_ssa::mir::block::TerminatorCodegenHelper
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]
&self,
fx: &'b mut FunctionCx<'a, 'tcx, Bx>
) -> Option<&'b Bx::Funclet>
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]
&self,
fx: &mut FunctionCx<'a, 'tcx, Bx>,
target: BasicBlock
) -> (Bx::BasicBlock, bool)
pub(in mir::block) fn llblock<Bx: BuilderMethods<'a, 'tcx>>(
&self,
fx: &mut FunctionCx<'a, 'tcx, Bx>,
target: BasicBlock
) -> Bx::BasicBlock[src]
&self,
fx: &mut FunctionCx<'a, 'tcx, Bx>,
target: BasicBlock
) -> Bx::BasicBlock
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]
&self,
fx: &mut FunctionCx<'a, 'tcx, Bx>,
bx: &mut Bx,
target: BasicBlock
)
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]
&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>
)
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]
&self,
mir: &'tcx Body<'tcx>,
bx: &mut Bx,
targets: &[BasicBlock]
)
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]
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,
pub 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.
pub 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>,