pub enum Term {
None,
Ret(Option<NodeId>),
Br(NodeId, usize, usize),
Jmp(usize),
Switch(NodeId, usize, Vec<(NodeId, usize)>),
Unreachable,
}Expand description
A basic block’s terminator.
Variants§
None
None: a transformation’s single block, whose result is its root.
Ret(Option<NodeId>)
ret (a value, or void).
Br(NodeId, usize, usize)
A conditional branch: condition, then, else.
Jmp(usize)
An unconditional branch.
Switch(NodeId, usize, Vec<(NodeId, usize)>)
switch: condition, default, cases (a literal node and a block).
Unreachable
unreachable.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Term
impl Freeze for Term
impl Move for Term
impl RefUnwindSafe for Term
impl Send for Term
impl Sync for Term
impl Unpin for Term
impl UnsafeUnpin for Term
impl UnwindSafe for Term
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more