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),
}
Expand description
Terminator instructions end a basic block. See LLVM 12 docs on Terminator Instructions
Variants
Ret(Ret)
Tuple Fields of Ret
0: Ret
Br(Br)
Tuple Fields of Br
0: Br
CondBr(CondBr)
Tuple Fields of CondBr
0: CondBr
Switch(Switch)
Tuple Fields of Switch
0: Switch
IndirectBr(IndirectBr)
Tuple Fields of IndirectBr
0: IndirectBr
Invoke(Invoke)
Tuple Fields of Invoke
0: Invoke
Resume(Resume)
Tuple Fields of Resume
0: Resume
Unreachable(Unreachable)
Tuple Fields of Unreachable
0: Unreachable
CleanupRet(CleanupRet)
Tuple Fields of CleanupRet
0: CleanupRet
CatchRet(CatchRet)
Tuple Fields of CatchRet
0: CatchRet
CatchSwitch(CatchSwitch)
Tuple Fields of CatchSwitch
0: CatchSwitch
CallBr(CallBr)
Tuple Fields of CallBr
0: CallBr
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Returns the DebugLoc
associated with the given Instruction
,
Terminator
, GlobalVariable
, or Function
; or None
if it doesn’t
have a DebugLoc
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
impl Send for Terminator
impl Sync for Terminator
impl Unpin for Terminator
impl UnwindSafe for Terminator
Blanket Implementations
Mutably borrows from an owned value. Read more