pub struct LoopInfo {
pub id: LoopId,
pub header: BasicBlock,
pub blocks: Vec<BasicBlock>,
pub exits: Vec<LoopExit>,
pub backedges: Vec<(BasicBlock, BasicBlock)>,
pub transfer: LoopTransfer,
}Expand description
Information recorded for one detected loop.
Fields§
§id: LoopIdLocal id of this loop.
header: BasicBlockHeader block chosen for this loop.
blocks: Vec<BasicBlock>Blocks that belong to the loop.
exits: Vec<LoopExit>Edges that leave the loop.
backedges: Vec<(BasicBlock, BasicBlock)>Edges inside the loop that go back to an earlier block or the header.
transfer: LoopTransferCurrent summary status for the loop.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LoopInfo
impl RefUnwindSafe for LoopInfo
impl Send for LoopInfo
impl Sync for LoopInfo
impl Unpin for LoopInfo
impl UnwindSafe for LoopInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more