pub struct AllocaOperation<'c> { /* private fields */ }
Expand description
An alloca
operation.
Implementations§
source§impl<'c> AllocaOperation<'c>
impl<'c> AllocaOperation<'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>
) -> AllocaOperationBuilder<'c, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> AllocaOperationBuilder<'c, Unset, Unset>
Creates a builder.
pub fn res(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn array_size(&self) -> Result<Value<'c, '_>, Error>
pub fn alignment(&self) -> Result<IntegerAttribute<'c>, Error>
pub fn set_alignment(&mut self, value: IntegerAttribute<'c>)
pub fn remove_alignment(&mut self) -> Result<(), Error>
pub fn elem_type(&self) -> Result<TypeAttribute<'c>, Error>
pub fn set_elem_type(&mut self, value: TypeAttribute<'c>)
pub fn remove_elem_type(&mut self) -> Result<(), Error>
pub fn inalloca(&self) -> Result<Attribute<'c>, Error>
pub fn set_inalloca(&mut self, value: Attribute<'c>)
pub fn remove_inalloca(&mut self) -> Result<(), Error>
Trait Implementations§
source§impl<'c> From<AllocaOperation<'c>> for Operation<'c>
impl<'c> From<AllocaOperation<'c>> for Operation<'c>
source§fn from(operation: AllocaOperation<'c>) -> Self
fn from(operation: AllocaOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for AllocaOperation<'c>
impl<'c> !Send for AllocaOperation<'c>
impl<'c> !Sync for AllocaOperation<'c>
impl<'c> Unpin for AllocaOperation<'c>
impl<'c> UnwindSafe for AllocaOperation<'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