pub struct CallOperation<'c> { /* private fields */ }
Expand description
A call
operation. Async call operation.
The async.call
operation represents a direct call to an async function
that is within the same symbol scope as the call. The operands and result
types of the call must match the specified async function type. The callee
is encoded as a symbol reference attribute named “callee”.
Example:
%2 = async.call @my_add(%0, %1) : (f32, f32) -> !async.value<f32>
Implementations§
source§impl<'c> CallOperation<'c>
impl<'c> CallOperation<'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>
) -> CallOperationBuilder<'c, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> CallOperationBuilder<'c, Unset, Unset>
Creates a builder.
pub fn operands(&self) -> impl Iterator<Item = Value<'c, '_>>
pub fn callee(&self) -> Result<FlatSymbolRefAttribute<'c>, Error>
pub fn set_callee(&mut self, value: FlatSymbolRefAttribute<'c>)
Trait Implementations§
source§impl<'c> From<CallOperation<'c>> for Operation<'c>
impl<'c> From<CallOperation<'c>> for Operation<'c>
source§fn from(operation: CallOperation<'c>) -> Self
fn from(operation: CallOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for CallOperation<'c>
impl<'c> !Send for CallOperation<'c>
impl<'c> !Sync for CallOperation<'c>
impl<'c> Unpin for CallOperation<'c>
impl<'c> UnwindSafe for CallOperation<'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