Enum llvm_ir::terminator::Terminator [−][src]
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]
fn clone(&self) -> Terminator
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Terminator
[src]
impl Display for Terminator
[src]
impl From<Br> for Terminator
[src]
fn from(term: Br) -> Terminator
[src]
impl From<CallBr> for Terminator
[src]
fn from(term: CallBr) -> Terminator
[src]
impl From<CatchRet> for Terminator
[src]
fn from(term: CatchRet) -> Terminator
[src]
impl From<CatchSwitch> for Terminator
[src]
fn from(term: CatchSwitch) -> Terminator
[src]
impl From<CleanupRet> for Terminator
[src]
fn from(term: CleanupRet) -> Terminator
[src]
impl From<CondBr> for Terminator
[src]
fn from(term: CondBr) -> Terminator
[src]
impl From<IndirectBr> for Terminator
[src]
fn from(term: IndirectBr) -> Terminator
[src]
impl From<Invoke> for Terminator
[src]
fn from(term: Invoke) -> Terminator
[src]
impl From<Resume> for Terminator
[src]
fn from(term: Resume) -> Terminator
[src]
impl From<Ret> for Terminator
[src]
fn from(term: Ret) -> Terminator
[src]
impl From<Switch> for Terminator
[src]
fn from(term: Switch) -> Terminator
[src]
impl From<Unreachable> for Terminator
[src]
fn from(term: Unreachable) -> Terminator
[src]
impl HasDebugLoc for Terminator
[src]
fn get_debug_loc(&self) -> &Option<DebugLoc>
[src]
impl PartialEq<Terminator> for Terminator
[src]
fn eq(&self, other: &Terminator) -> bool
[src]
fn ne(&self, other: &Terminator) -> bool
[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.
fn try_from(term: Terminator) -> Result<Self, Self::Error>
[src]
impl TryFrom<Terminator> for Br
[src]
type Error = &'static str
The type returned in the event of a conversion error.
fn try_from(term: Terminator) -> Result<Self, Self::Error>
[src]
impl TryFrom<Terminator> for CatchSwitch
[src]
type Error = &'static str
The type returned in the event of a conversion error.
fn try_from(term: Terminator) -> Result<Self, Self::Error>
[src]
impl TryFrom<Terminator> for CallBr
[src]
type Error = &'static str
The type returned in the event of a conversion error.
fn try_from(term: Terminator) -> Result<Self, Self::Error>
[src]
impl TryFrom<Terminator> for CondBr
[src]
type Error = &'static str
The type returned in the event of a conversion error.
fn try_from(term: Terminator) -> Result<Self, Self::Error>
[src]
impl TryFrom<Terminator> for Switch
[src]
type Error = &'static str
The type returned in the event of a conversion error.
fn try_from(term: Terminator) -> Result<Self, Self::Error>
[src]
impl TryFrom<Terminator> for IndirectBr
[src]
type Error = &'static str
The type returned in the event of a conversion error.
fn try_from(term: Terminator) -> Result<Self, Self::Error>
[src]
impl TryFrom<Terminator> for Invoke
[src]
type Error = &'static str
The type returned in the event of a conversion error.
fn try_from(term: Terminator) -> Result<Self, Self::Error>
[src]
impl TryFrom<Terminator> for Resume
[src]
type Error = &'static str
The type returned in the event of a conversion error.
fn try_from(term: Terminator) -> Result<Self, Self::Error>
[src]
impl TryFrom<Terminator> for Unreachable
[src]
type Error = &'static str
The type returned in the event of a conversion error.
fn try_from(term: Terminator) -> Result<Self, Self::Error>
[src]
impl TryFrom<Terminator> for CleanupRet
[src]
type Error = &'static str
The type returned in the event of a conversion error.
fn try_from(term: Terminator) -> Result<Self, Self::Error>
[src]
impl TryFrom<Terminator> for CatchRet
[src]
type Error = &'static str
The type returned in the event of a conversion error.
fn try_from(term: Terminator) -> Result<Self, Self::Error>
[src]
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]
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,