pub struct CondBrOperation<'c> { /* private fields */ }
Expand description
A cond_br
operation.
Implementations§
source§impl<'c> CondBrOperation<'c>
impl<'c> CondBrOperation<'c>
sourcepub fn as_operation(&self) -> &Operation<'c>
pub fn as_operation(&self) -> &Operation<'c>
Returns a generic operation.
sourcepub fn builder(
context: &'c Context,
location: Location<'c>
) -> CondBrOperationBuilder<'c, Unset, Unset, Unset, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> CondBrOperationBuilder<'c, Unset, Unset, Unset, Unset, Unset>
Creates a builder.
pub fn condition(&self) -> Result<Value<'c, '_>, Error>
pub fn true_dest_operands( &self ) -> Result<impl Iterator<Item = Value<'c, '_>>, Error>
pub fn false_dest_operands( &self ) -> Result<impl Iterator<Item = Value<'c, '_>>, Error>
pub fn true_dest(&self) -> Result<BlockRef<'c, '_>, Error>
pub fn false_dest(&self) -> Result<BlockRef<'c, '_>, Error>
pub fn branch_weights(&self) -> Result<DenseI32ArrayAttribute<'c>, Error>
pub fn set_branch_weights(&mut self, value: DenseI32ArrayAttribute<'c>)
pub fn remove_branch_weights(&mut self) -> Result<(), Error>
pub fn loop_annotation(&self) -> Result<Attribute<'c>, Error>
pub fn set_loop_annotation(&mut self, value: Attribute<'c>)
pub fn remove_loop_annotation(&mut self) -> Result<(), Error>
Trait Implementations§
source§impl<'c> From<CondBrOperation<'c>> for Operation<'c>
impl<'c> From<CondBrOperation<'c>> for Operation<'c>
source§fn from(operation: CondBrOperation<'c>) -> Self
fn from(operation: CondBrOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for CondBrOperation<'c>
impl<'c> !Send for CondBrOperation<'c>
impl<'c> !Sync for CondBrOperation<'c>
impl<'c> Unpin for CondBrOperation<'c>
impl<'c> UnwindSafe for CondBrOperation<'c>
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