[−][src]Struct llama::InstrPhi
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,