[][src]Struct llhd::pass::ConstantFoldingPass

pub struct ConstantFoldingPass;

Constant folding

Methods

impl ConstantFoldingPass[src]

pub fn run_on_function(func: &mut Function) -> bool[src]

Fold a function.

pub fn run_on_process(prok: &mut Process) -> bool[src]

Fold a process.

pub fn run_on_entity(entity: &mut Entity) -> bool[src]

Fold an entity.

pub fn run_on_inst(builder: &mut impl UnitBuilder, inst: Inst) -> bool[src]

Fold a single instruction.

Auto Trait Implementations

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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