Struct rustc_codegen_ssa::mir::block::TerminatorCodegenHelper [−][src]
struct TerminatorCodegenHelper<'tcx> {
bb: BasicBlock,
terminator: &'tcx Terminator<'tcx>,
funclet_bb: Option<BasicBlock>,
}Expand description
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]
impl<'a, 'tcx> TerminatorCodegenHelper<'tcx>[src]fn funclet<'b, Bx: BuilderMethods<'a, 'tcx>>(
&self,
fx: &'b FunctionCx<'a, 'tcx, Bx>
) -> Option<&'b Bx::Funclet>[src]
fn funclet<'b, Bx: BuilderMethods<'a, 'tcx>>(
&self,
fx: &'b 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.
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)
fn llblock<Bx: BuilderMethods<'a, 'tcx>>(
&self,
fx: &mut FunctionCx<'a, 'tcx, Bx>,
target: BasicBlock
) -> Bx::BasicBlock[src]
fn llblock<Bx: BuilderMethods<'a, 'tcx>>(
&self,
fx: &mut FunctionCx<'a, 'tcx, Bx>,
target: BasicBlock
) -> Bx::BasicBlock[src]Create a basic 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
)
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]
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.