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>

source

pub fn name() -> &'static str

Returns a name.

source

pub fn as_operation(&self) -> &Operation<'c>

Returns a generic operation.

source

pub fn builder( context: &'c Context, location: Location<'c> ) -> InlineAsmOperationBuilder<'c, Unset, Unset, Unset>

Creates a builder.

source

pub fn res(&self) -> Result<OperationResult<'c, '_>, Error>

source

pub fn operands(&self) -> impl Iterator<Item = Value<'c, '_>>

source

pub fn asm_string(&self) -> Result<StringAttribute<'c>, Error>

source

pub fn set_asm_string(&mut self, value: StringAttribute<'c>)

source

pub fn constraints(&self) -> Result<StringAttribute<'c>, Error>

source

pub fn set_constraints(&mut self, value: StringAttribute<'c>)

source

pub fn has_side_effects(&self) -> Result<Attribute<'c>, Error>

source

pub fn set_has_side_effects(&mut self, value: Attribute<'c>)

source

pub fn remove_has_side_effects(&mut self) -> Result<(), Error>

source

pub fn is_align_stack(&self) -> Result<Attribute<'c>, Error>

source

pub fn set_is_align_stack(&mut self, value: Attribute<'c>)

source

pub fn remove_is_align_stack(&mut self) -> Result<(), Error>

source

pub fn asm_dialect(&self) -> Result<Attribute<'c>, Error>

source

pub fn set_asm_dialect(&mut self, value: Attribute<'c>)

source

pub fn remove_asm_dialect(&mut self) -> Result<(), Error>

source

pub fn operand_attrs(&self) -> Result<ArrayAttribute<'c>, Error>

source

pub fn set_operand_attrs(&mut self, value: ArrayAttribute<'c>)

source

pub fn remove_operand_attrs(&mut self) -> Result<(), Error>

Trait Implementations§

source§

impl<'c> From<InlineAsmOperation<'c>> for Operation<'c>

source§

fn from(operation: InlineAsmOperation<'c>) -> Self

Converts to this type from the input type.
source§

impl<'c> TryFrom<Operation<'c>> for InlineAsmOperation<'c>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(operation: Operation<'c>) -> Result<Self, Self::Error>

Performs the conversion.

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.