Struct llvm_kaleidoscope_rs::llvm::PhiValue
source · pub struct PhiValue<'llvm>(/* private fields */);
Expand description
Wrapper for a LLVM Value Reference specialized for contexts where phi values are needed.
Implementations§
source§impl<'llvm> PhiValue<'llvm>
impl<'llvm> PhiValue<'llvm>
sourcepub fn add_incoming(&self, ival: Value<'llvm>, ibb: BasicBlock<'llvm>)
pub fn add_incoming(&self, ival: Value<'llvm>, ibb: BasicBlock<'llvm>)
Add an incoming value to the end of a PHI list.
Methods from Deref<Target = Value<'llvm>>§
sourcepub fn type_of(&self) -> Type<'llvm>
pub fn type_of(&self) -> Type<'llvm>
Get a type reference representing for the given value reference.
Panics
Panics if LLVM API returns a null
pointer.
Trait Implementations§
impl<'llvm> Copy for PhiValue<'llvm>
Auto Trait Implementations§
impl<'llvm> RefUnwindSafe for PhiValue<'llvm>
impl<'llvm> !Send for PhiValue<'llvm>
impl<'llvm> !Sync for PhiValue<'llvm>
impl<'llvm> Unpin for PhiValue<'llvm>
impl<'llvm> UnwindSafe for PhiValue<'llvm>
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