pub struct InlineAsmOperation<'c> { /* private fields */ }
Expand description
An inline_asm
operation.
The InlineAsmOp mirrors the underlying LLVM semantics with a notable
exception: the embedded asm_string
is not allowed to define or reference
any symbol or any global variable: only the operands of the op may be read,
written, or referenced.
Attempting to define or reference any symbol or any global behavior is
considered undefined behavior at this time.
Implementations§
source§impl<'c> InlineAsmOperation<'c>
impl<'c> InlineAsmOperation<'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>
) -> InlineAsmOperationBuilder<'c, Unset, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> InlineAsmOperationBuilder<'c, Unset, Unset, Unset>
Creates a builder.
pub fn res(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn operands(&self) -> impl Iterator<Item = Value<'c, '_>>
pub fn asm_string(&self) -> Result<StringAttribute<'c>, Error>
pub fn set_asm_string(&mut self, value: StringAttribute<'c>)
pub fn constraints(&self) -> Result<StringAttribute<'c>, Error>
pub fn set_constraints(&mut self, value: StringAttribute<'c>)
pub fn has_side_effects(&self) -> Result<Attribute<'c>, Error>
pub fn set_has_side_effects(&mut self, value: Attribute<'c>)
pub fn remove_has_side_effects(&mut self) -> Result<(), Error>
pub fn is_align_stack(&self) -> Result<Attribute<'c>, Error>
pub fn set_is_align_stack(&mut self, value: Attribute<'c>)
pub fn remove_is_align_stack(&mut self) -> Result<(), Error>
pub fn asm_dialect(&self) -> Result<Attribute<'c>, Error>
pub fn set_asm_dialect(&mut self, value: Attribute<'c>)
pub fn remove_asm_dialect(&mut self) -> Result<(), Error>
pub fn operand_attrs(&self) -> Result<ArrayAttribute<'c>, Error>
pub fn set_operand_attrs(&mut self, value: ArrayAttribute<'c>)
pub fn remove_operand_attrs(&mut self) -> Result<(), Error>
Trait Implementations§
source§impl<'c> From<InlineAsmOperation<'c>> for Operation<'c>
impl<'c> From<InlineAsmOperation<'c>> for Operation<'c>
source§fn from(operation: InlineAsmOperation<'c>) -> Self
fn from(operation: InlineAsmOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for InlineAsmOperation<'c>
impl<'c> !Send for InlineAsmOperation<'c>
impl<'c> !Sync for InlineAsmOperation<'c>
impl<'c> Unpin for InlineAsmOperation<'c>
impl<'c> UnwindSafe for InlineAsmOperation<'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