Struct llvm_ir::instruction::Alloca
source · [−]pub struct Alloca {
pub allocated_type: TypeRef,
pub num_elements: Operand,
pub dest: Name,
pub alignment: u32,
pub debugloc: Option<DebugLoc>,
}
Expand description
Allocate memory on the stack. See LLVM 14 docs on the ‘alloca’ instruction
Fields
allocated_type: TypeRef
num_elements: Operand
dest: Name
alignment: u32
debugloc: Option<DebugLoc>
Trait Implementations
sourceimpl From<Alloca> for Instruction
impl From<Alloca> for Instruction
sourcefn from(inst: Alloca) -> Instruction
fn from(inst: Alloca) -> Instruction
Converts to this type from the input type.
sourceimpl HasDebugLoc for Alloca
impl HasDebugLoc for Alloca
sourcefn get_debug_loc(&self) -> &Option<DebugLoc>
fn get_debug_loc(&self) -> &Option<DebugLoc>
Returns the DebugLoc
associated with the given Instruction
,
Terminator
, GlobalVariable
, or Function
; or None
if it doesn’t
have a DebugLoc
. Read more
sourceimpl PartialEq<Alloca> for Alloca
impl PartialEq<Alloca> for Alloca
sourceimpl TryFrom<Instruction> for Alloca
impl TryFrom<Instruction> for Alloca
impl StructuralPartialEq for Alloca
Auto Trait Implementations
impl RefUnwindSafe for Alloca
impl Send for Alloca
impl Sync for Alloca
impl Unpin for Alloca
impl UnwindSafe for Alloca
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more