Struct llvm_ir::instruction::Alloca [−][src]
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 12 docs on the ‘alloca’ instruction
Fields
allocated_type: TypeRefnum_elements: Operanddest: Namealignment: u32debugloc: Option<DebugLoc>Trait Implementations
Performs the conversion.
Returns the DebugLoc associated with the given Instruction,
Terminator, GlobalVariable, or Function; or None if it doesn’t
have a DebugLoc. Read more
Auto Trait Implementations
impl RefUnwindSafe for Allocaimpl UnwindSafe for AllocaBlanket Implementations
Mutably borrows from an owned value. Read more