pub struct FixedPointAnalysisPlan { /* private fields */ }Expand description
Prepared fixed-point analysis plan: invariant graph buffers plus emitted IR.
Implementations§
Source§impl FixedPointAnalysisPlan
impl FixedPointAnalysisPlan
Sourcepub fn new(graph: FixedPointForwardGraph, program: Program) -> Self
pub fn new(graph: FixedPointForwardGraph, program: Program) -> Self
Build a prepared fixed-point plan from packed graph buffers and Program.
Sourcepub fn new_for_kind(
kind: FixedPointAnalysisKind,
graph: FixedPointForwardGraph,
program: Program,
) -> Self
pub fn new_for_kind( kind: FixedPointAnalysisKind, graph: FixedPointForwardGraph, program: Program, ) -> Self
Build a prepared fixed-point plan with an explicit analysis family.
Sourcepub fn kind(&self) -> FixedPointAnalysisKind
pub fn kind(&self) -> FixedPointAnalysisKind
Analysis family this plan was prepared for.
Sourcepub fn require_kind(
&self,
expected: FixedPointAnalysisKind,
consumer: &str,
) -> Result<(), String>
pub fn require_kind( &self, expected: FixedPointAnalysisKind, consumer: &str, ) -> Result<(), String>
Verify this plan is being used by the analysis family that prepared it.
Sourcepub fn graph(&self) -> &FixedPointForwardGraph
pub fn graph(&self) -> &FixedPointForwardGraph
Prepared graph buffers used by this plan.
Sourcepub fn graph_mut(&mut self) -> &mut FixedPointForwardGraph
pub fn graph_mut(&mut self) -> &mut FixedPointForwardGraph
Mutable prepared graph buffers used by this plan.
Sourcepub fn replace_program_for_kind(
&mut self,
kind: FixedPointAnalysisKind,
program: Program,
)
pub fn replace_program_for_kind( &mut self, kind: FixedPointAnalysisKind, program: Program, )
Replace this plan’s analysis family and emitted Program.
Sourcepub fn retained_graph_bytes(&self) -> usize
pub fn retained_graph_bytes(&self) -> usize
Retained bytes across invariant graph buffers.
Sourcepub fn stable_layout_hash(&self) -> u64
pub fn stable_layout_hash(&self) -> u64
Stable hash of the normalized graph layout used by this plan.
Trait Implementations§
Source§impl Clone for FixedPointAnalysisPlan
impl Clone for FixedPointAnalysisPlan
Source§fn clone(&self) -> FixedPointAnalysisPlan
fn clone(&self) -> FixedPointAnalysisPlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FixedPointAnalysisPlan
impl Debug for FixedPointAnalysisPlan
Source§impl PartialEq for FixedPointAnalysisPlan
impl PartialEq for FixedPointAnalysisPlan
impl StructuralPartialEq for FixedPointAnalysisPlan
Auto Trait Implementations§
impl !Freeze for FixedPointAnalysisPlan
impl !RefUnwindSafe for FixedPointAnalysisPlan
impl !UnwindSafe for FixedPointAnalysisPlan
impl Send for FixedPointAnalysisPlan
impl Sync for FixedPointAnalysisPlan
impl Unpin for FixedPointAnalysisPlan
impl UnsafeUnpin for FixedPointAnalysisPlan
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