pub struct FunctionDefinition {
pub allocations: Vec<Named<Dtype>>,
pub blocks: BTreeMap<BlockId, Block>,
pub bid_init: BlockId,
}
Fields§
§allocations: Vec<Named<Dtype>>
Memory allocations for local variables. The allocation is performed at the beginning of a function invocation.
blocks: BTreeMap<BlockId, Block>
Basic blocks.
bid_init: BlockId
The initial block id.
Trait Implementations§
Source§impl Clone for FunctionDefinition
impl Clone for FunctionDefinition
Source§fn clone(&self) -> FunctionDefinition
fn clone(&self) -> FunctionDefinition
Returns a copy of the value. Read more
1.0.0 · 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 FunctionDefinition
impl Debug for FunctionDefinition
Source§impl IsEquiv for FunctionDefinition
impl IsEquiv for FunctionDefinition
Source§fn is_equiv(&self, other: &Self) -> bool
fn is_equiv(&self, other: &Self) -> bool
See
PartialEq::eq
.Source§impl Optimize<FunctionDefinition> for DeadcodeInner
impl Optimize<FunctionDefinition> for DeadcodeInner
fn optimize(&mut self, code: &mut FunctionDefinition) -> bool
Source§impl Optimize<FunctionDefinition> for GvnInner
impl Optimize<FunctionDefinition> for GvnInner
fn optimize(&mut self, code: &mut FunctionDefinition) -> bool
Source§impl Optimize<FunctionDefinition> for Mem2regInner
impl Optimize<FunctionDefinition> for Mem2regInner
fn optimize(&mut self, code: &mut FunctionDefinition) -> bool
Source§impl Optimize<FunctionDefinition> for SimplifyCfgConstProp
impl Optimize<FunctionDefinition> for SimplifyCfgConstProp
fn optimize(&mut self, code: &mut FunctionDefinition) -> bool
Source§impl Optimize<FunctionDefinition> for SimplifyCfgEmpty
impl Optimize<FunctionDefinition> for SimplifyCfgEmpty
fn optimize(&mut self, code: &mut FunctionDefinition) -> bool
Source§impl Optimize<FunctionDefinition> for SimplifyCfgMerge
impl Optimize<FunctionDefinition> for SimplifyCfgMerge
fn optimize(&mut self, code: &mut FunctionDefinition) -> bool
Source§impl Optimize<FunctionDefinition> for SimplifyCfgReach
impl Optimize<FunctionDefinition> for SimplifyCfgReach
fn optimize(&mut self, code: &mut FunctionDefinition) -> bool
Source§impl PartialEq for FunctionDefinition
impl PartialEq for FunctionDefinition
impl Eq for FunctionDefinition
impl StructuralPartialEq for FunctionDefinition
Auto Trait Implementations§
impl Freeze for FunctionDefinition
impl RefUnwindSafe for FunctionDefinition
impl Send for FunctionDefinition
impl Sync for FunctionDefinition
impl Unpin for FunctionDefinition
impl UnwindSafe for FunctionDefinition
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