Enum llvm_ir::terminator::Terminator[][src]

pub enum Terminator {
    Ret(Ret),
    Br(Br),
    CondBr(CondBr),
    Switch(Switch),
    IndirectBr(IndirectBr),
    Invoke(Invoke),
    Resume(Resume),
    Unreachable(Unreachable),
    CleanupRet(CleanupRet),
    CatchRet(CatchRet),
    CatchSwitch(CatchSwitch),
    CallBr(CallBr),
}

Terminator instructions end a basic block. See LLVM 12 docs on Terminator Instructions

Variants

Ret(Ret)
Br(Br)
CondBr(CondBr)
Switch(Switch)
IndirectBr(IndirectBr)
Invoke(Invoke)
Resume(Resume)
Unreachable(Unreachable)
CleanupRet(CleanupRet)
CatchRet(CatchRet)
CatchSwitch(CatchSwitch)
CallBr(CallBr)

Trait Implementations

impl Clone for Terminator[src]

impl Debug for Terminator[src]

impl Display for Terminator[src]

impl From<Br> for Terminator[src]

impl From<CallBr> for Terminator[src]

impl From<CatchRet> for Terminator[src]

impl From<CatchSwitch> for Terminator[src]

impl From<CleanupRet> for Terminator[src]

impl From<CondBr> for Terminator[src]

impl From<IndirectBr> for Terminator[src]

impl From<Invoke> for Terminator[src]

impl From<Resume> for Terminator[src]

impl From<Ret> for Terminator[src]

impl From<Switch> for Terminator[src]

impl From<Unreachable> for Terminator[src]

impl HasDebugLoc for Terminator[src]

impl PartialEq<Terminator> for Terminator[src]

impl StructuralPartialEq for Terminator[src]

impl TryFrom<Terminator> for Ret[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<Terminator> for Br[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<Terminator> for CatchSwitch[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<Terminator> for CallBr[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<Terminator> for CondBr[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<Terminator> for Switch[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<Terminator> for IndirectBr[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<Terminator> for Invoke[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<Terminator> for Resume[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<Terminator> for Unreachable[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<Terminator> for CleanupRet[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<Terminator> for CatchRet[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl Typed for Terminator[src]

The Type of a Terminator is its result type. For most terminators, this is VoidType. For instance, a Ret instruction has void type even if the function returns a non-void value; we do not store the result of a Ret instruction using something like %3 = ret i32 %2. See LLVM 12 docs on Terminator Instructions

Auto Trait Implementations

impl RefUnwindSafe for Terminator[src]

impl Send for Terminator[src]

impl Sync for Terminator[src]

impl Unpin for Terminator[src]

impl UnwindSafe for Terminator[src]

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.