pub struct GetProducerOfOperandOperation<'c> { /* private fields */ }
Expand description
A get_producer_of_operand
operation. Get handle to the producer of this operation’s operand number.
The handle defined by this Transform op corresponds to operation that
produces the SSA value defined by the target
and operand_number
arguments. If the origin of the SSA value is not an operations (i.e. it is
a block argument), the transform silently fails.
The return handle points to only the subset of successfully produced
computational operations, which can be empty.
Implementations§
source§impl<'c> GetProducerOfOperandOperation<'c>
impl<'c> GetProducerOfOperandOperation<'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>
) -> GetProducerOfOperandOperationBuilder<'c, Unset, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> GetProducerOfOperandOperationBuilder<'c, Unset, Unset, Unset>
Creates a builder.
pub fn producer(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn target(&self) -> Result<Value<'c, '_>, Error>
pub fn operand_number(&self) -> Result<IntegerAttribute<'c>, Error>
pub fn set_operand_number(&mut self, value: IntegerAttribute<'c>)
Trait Implementations§
source§impl<'c> From<GetProducerOfOperandOperation<'c>> for Operation<'c>
impl<'c> From<GetProducerOfOperandOperation<'c>> for Operation<'c>
source§fn from(operation: GetProducerOfOperandOperation<'c>) -> Self
fn from(operation: GetProducerOfOperandOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for GetProducerOfOperandOperation<'c>
impl<'c> !Send for GetProducerOfOperandOperation<'c>
impl<'c> !Sync for GetProducerOfOperandOperation<'c>
impl<'c> Unpin for GetProducerOfOperandOperation<'c>
impl<'c> UnwindSafe for GetProducerOfOperandOperation<'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