[−][src]Struct rustc_codegen_llvm::common::Funclet

pub struct Funclet<'ll> {
    cleanuppad: &'ll Value,
    operand: OperandBundleDef<'ll>,
}

A structure representing an active landing pad for the duration of a basic block.

Each Block may contain an instance of this, indicating whether the block is part of a landing pad or not. This is used to make decision about whether to emit invoke instructions (e.g., in a landing pad we don't continue to use invoke) and also about various function call metadata.

For GNU exceptions (landingpad + resume instructions) this structure is just a bunch of None instances (not too interesting), but for MSVC exceptions (cleanuppad + cleanupret instructions) this contains data. When inside of a landing pad, each function call in LLVM IR needs to be annotated with which landing pad it's a part of. This is accomplished via the OperandBundleDef value created for MSVC landing pads.

Fields

cleanuppad: &'ll Valueoperand: OperandBundleDef<'ll>

Implementations

impl<'ll> Funclet<'ll>[src]

pub fn new(cleanuppad: &'ll Value) -> Self[src]

pub fn cleanuppad(&self) -> &'ll Value[src]

pub fn bundle(&self) -> &OperandBundleDef<'ll>[src]

Auto Trait Implementations

impl<'ll> !RefUnwindSafe for Funclet<'ll>

impl<'ll> !Send for Funclet<'ll>

impl<'ll> !Sync for Funclet<'ll>

impl<'ll> Unpin for Funclet<'ll>

impl<'ll> !UnwindSafe for Funclet<'ll>

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.