[][src]Struct gf::pivot::fragment::Fragment

pub struct Fragment<'a> { /* fields omitted */ }

🟢 Fragment in a sealed module.

Implementations

impl<'a> Fragment<'a>[src]

pub unsafe fn from_unsealed(
    module: &'a Module,
    id: FragmentId,
    unsealed: &'a UnsealedFragment
) -> Self
[src]

Wrap an unsealed fragment.

pub fn module(&self) -> &'a Module[src]

Return parent module.

pub fn id(&self) -> FragmentId[src]

Return ID.

pub fn as_unsealed(&self) -> &'a UnsealedFragment[src]

Return the unsealed fragment.

pub fn sealing_data(&self) -> &'a FragmentSealingData[src]

Return sealing data.

pub fn metadata(&self) -> Metadata<'a>[src]

Return metadata.

pub fn entry(&self) -> BasicBlock<'a>[src]

Return entry basic block.

pub fn exit(&self) -> BasicBlock<'a>[src]

Return exit basic block.

pub fn input_sizes(&self) -> &'a [VarSize][src]

Return input variable sizes.

pub fn output_sizes(&self) -> &'a [VarSize][src]

Return output variable sizes.

pub fn cfg(&self) -> FragmentCfg<'a, Forward>[src]

Return the fragment forward CFG.

pub fn defs_uses(&self) -> FragmentDefsUses<'a>[src]

Return the defined and used variables of the fragment.

pub fn dom_tree(&self) -> FragmentDomTree<'a, Forward>[src]

Return the fragment forward dominator tree.

pub fn is_pure(&self) -> bool[src]

Return whether the fragment is pure.

pub fn var_size(&self, var: Var) -> VarSize[src]

Return variable size.

Errors

  • Panics if the variable is not defined in the fragment.

Trait Implementations

impl<'a> Clone for Fragment<'a>[src]

impl<'a> Copy for Fragment<'a>[src]

impl<'a> Eq for Fragment<'a>[src]

impl<'a> Hash for Fragment<'a>[src]

impl<'a> PartialEq<Fragment<'a>> for Fragment<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Fragment<'a>

impl<'a> Send for Fragment<'a>

impl<'a> Sync for Fragment<'a>

impl<'a> Unpin for Fragment<'a>

impl<'a> UnwindSafe for Fragment<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.