Struct melior::dialect::llvm::AllocaOptions
source · pub struct AllocaOptions<'c> { /* private fields */ }
Expand description
alloca options.
Implementations§
source§impl<'c> AllocaOptions<'c>
impl<'c> AllocaOptions<'c>
sourcepub fn align(self, align: Option<IntegerAttribute<'c>>) -> Self
pub fn align(self, align: Option<IntegerAttribute<'c>>) -> Self
Sets the alignment.
sourcepub fn elem_type(self, elem_type: Option<TypeAttribute<'c>>) -> Self
pub fn elem_type(self, elem_type: Option<TypeAttribute<'c>>) -> Self
Sets the elem_type, not needed if the returned pointer is not opaque.
Trait Implementations§
source§impl<'c> Clone for AllocaOptions<'c>
impl<'c> Clone for AllocaOptions<'c>
source§fn clone(&self) -> AllocaOptions<'c>
fn clone(&self) -> AllocaOptions<'c>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'c> Debug for AllocaOptions<'c>
impl<'c> Debug for AllocaOptions<'c>
source§impl<'c> Default for AllocaOptions<'c>
impl<'c> Default for AllocaOptions<'c>
source§fn default() -> AllocaOptions<'c>
fn default() -> AllocaOptions<'c>
Returns the “default value” for a type. Read more
impl<'c> Copy for AllocaOptions<'c>
Auto Trait Implementations§
impl<'c> RefUnwindSafe for AllocaOptions<'c>
impl<'c> !Send for AllocaOptions<'c>
impl<'c> !Sync for AllocaOptions<'c>
impl<'c> Unpin for AllocaOptions<'c>
impl<'c> UnwindSafe for AllocaOptions<'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