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)Br(Br)CondBr(CondBr)Switch(Switch)IndirectBr(IndirectBr)Invoke(Invoke)Resume(Resume)Unreachable(Unreachable)CleanupRet(CleanupRet)CatchRet(CatchRet)CatchSwitch(CatchSwitch)CallBr(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 Terminatorimpl Send for Terminatorimpl Sync for Terminatorimpl Unpin for Terminatorimpl UnwindSafe for TerminatorBlanket Implementations
Mutably borrows from an owned value. Read more