Struct llvm_ir::instruction::GetElementPtr [−][src]
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 12 docs on the ‘getelementptr’ instruction
Fields
address: Operandindices: Vec<Operand>dest: Namein_bounds: booldebugloc: 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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for GetElementPtrimpl Send for GetElementPtrimpl Sync for GetElementPtrimpl Unpin for GetElementPtrimpl UnwindSafe for GetElementPtrBlanket Implementations
Mutably borrows from an owned value. Read more