pub struct EscapeAnalysis { /* private fields */ }Expand description
Performs escape analysis on an LCNF module.
Implementations§
Source§impl EscapeAnalysis
impl EscapeAnalysis
Sourcepub fn analyze(&mut self, module: &LcnfModule) -> HashMap<String, EscapeInfo>
pub fn analyze(&mut self, module: &LcnfModule) -> HashMap<String, EscapeInfo>
Analyze an entire module.
Sourcepub fn get_var_escape(&self, var: LcnfVarId) -> EscapeInfo
pub fn get_var_escape(&self, var: LcnfVarId) -> EscapeInfo
Get the escape status of a variable.
Sourcepub fn get_fn_escape(&self, name: &str) -> EscapeInfo
pub fn get_fn_escape(&self, name: &str) -> EscapeInfo
Get the escape status of a function.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EscapeAnalysis
impl RefUnwindSafe for EscapeAnalysis
impl Send for EscapeAnalysis
impl Sync for EscapeAnalysis
impl Unpin for EscapeAnalysis
impl UnsafeUnpin for EscapeAnalysis
impl UnwindSafe for EscapeAnalysis
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