Struct llvm_ir::instruction::GetElementPtr
source · [−]pub struct GetElementPtr {
pub address: Operand,
pub indices: Vec<Operand>,
pub dest: Name,
pub in_bounds: bool,
pub debugloc: Option<DebugLoc>,
}Expand description
Get the address of a subelement of an aggregate data structure. Only performs address calculation, does not actually access memory. See LLVM 14 docs on the ‘getelementptr’ instruction
Fields
address: Operandindices: Vec<Operand>dest: Namein_bounds: booldebugloc: Option<DebugLoc>Trait Implementations
sourceimpl Clone for GetElementPtr
impl Clone for GetElementPtr
sourcefn clone(&self) -> GetElementPtr
fn clone(&self) -> GetElementPtr
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for GetElementPtr
impl Debug for GetElementPtr
sourceimpl Display for GetElementPtr
impl Display for GetElementPtr
sourceimpl From<GetElementPtr> for Instruction
impl From<GetElementPtr> for Instruction
sourcefn from(inst: GetElementPtr) -> Instruction
fn from(inst: GetElementPtr) -> Instruction
Converts to this type from the input type.
sourceimpl HasDebugLoc for GetElementPtr
impl HasDebugLoc for GetElementPtr
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 HasResult for GetElementPtr
impl HasResult for GetElementPtr
fn get_result(&self) -> &Name
sourceimpl PartialEq<GetElementPtr> for GetElementPtr
impl PartialEq<GetElementPtr> for GetElementPtr
sourcefn eq(&self, other: &GetElementPtr) -> bool
fn eq(&self, other: &GetElementPtr) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourceimpl TryFrom<Instruction> for GetElementPtr
impl TryFrom<Instruction> for GetElementPtr
impl StructuralPartialEq for GetElementPtr
Auto Trait Implementations
impl RefUnwindSafe for GetElementPtr
impl Send for GetElementPtr
impl Sync for GetElementPtr
impl Unpin for GetElementPtr
impl UnwindSafe for GetElementPtr
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