[][src]Struct llama::InstrPhi

pub struct InstrPhi<'a>(_);

Phi instruction

Implementations

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

pub fn from_instr(i: Instr<'a>) -> Self[src]

Convert from Instr

pub fn to_instr(self) -> Instr<'a>[src]

Convert to Instr

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

pub fn add_incoming(&mut self, items: impl AsRef<[(Value<'a>, BasicBlock<'a>)]>)[src]

Add incoming items

pub fn count_incoming(self) -> usize[src]

Return the number of incoming blocks/values

pub fn incoming_value(self, index: usize) -> Result<Value<'a>, Error>[src]

Get incoming block

pub fn incoming_block(self, index: usize) -> Result<BasicBlock<'a>, Error>[src]

Get incoming value

Trait Implementations

impl<'a> AsRef<Value<'a>> for InstrPhi<'a>[src]

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

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

impl<'a> From<InstrPhi<'a>> for Value<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for InstrPhi<'a>

impl<'a> !Send for InstrPhi<'a>

impl<'a> !Sync for InstrPhi<'a>

impl<'a> Unpin for InstrPhi<'a>

impl<'a> UnwindSafe for InstrPhi<'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<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.