pub struct LicmLoopAnalysis {
pub loop_tree: LoopTree,
pub preheaders: LicmPreheaderMap,
pub invariant_vars: HashMap<u32, LoopLevelId>,
}Expand description
LICM loop analysis result
Fields§
§loop_tree: LoopTree§preheaders: LicmPreheaderMap§invariant_vars: HashMap<u32, LoopLevelId>Implementations§
Source§impl LicmLoopAnalysis
impl LicmLoopAnalysis
pub fn new() -> Self
pub fn add_invariant(&mut self, var: u32, loop_id: LoopLevelId)
pub fn is_invariant(&self, var: u32) -> bool
pub fn invariant_count(&self) -> usize
Trait Implementations§
Source§impl Debug for LicmLoopAnalysis
impl Debug for LicmLoopAnalysis
Source§impl Default for LicmLoopAnalysis
impl Default for LicmLoopAnalysis
Source§fn default() -> LicmLoopAnalysis
fn default() -> LicmLoopAnalysis
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LicmLoopAnalysis
impl RefUnwindSafe for LicmLoopAnalysis
impl Send for LicmLoopAnalysis
impl Sync for LicmLoopAnalysis
impl Unpin for LicmLoopAnalysis
impl UnsafeUnpin for LicmLoopAnalysis
impl UnwindSafe for LicmLoopAnalysis
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