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: Operand
indices: Vec<Operand>
dest: Name
in_bounds: bool
debugloc: 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 GetElementPtr
impl Send for GetElementPtr
impl Sync for GetElementPtr
impl Unpin for GetElementPtr
impl UnwindSafe for GetElementPtr
Blanket Implementations
Mutably borrows from an owned value. Read more