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: Operand
§indices: Vec<Operand>
§dest: Name
§in_bounds: bool
§debugloc: Option<DebugLoc>
Trait Implementations§
Source§impl Clone for GetElementPtr
impl Clone for GetElementPtr
Source§fn clone(&self) -> GetElementPtr
fn clone(&self) -> GetElementPtr
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GetElementPtr
impl Debug for GetElementPtr
Source§impl Display for GetElementPtr
impl Display for GetElementPtr
Source§impl From<GetElementPtr> for Instruction
impl From<GetElementPtr> for Instruction
Source§fn from(inst: GetElementPtr) -> Instruction
fn from(inst: GetElementPtr) -> Instruction
Converts to this type from the input type.
Source§impl HasDebugLoc for GetElementPtr
impl HasDebugLoc for GetElementPtr
Source§impl HasResult for GetElementPtr
impl HasResult for GetElementPtr
fn get_result(&self) -> &Name
Source§impl Hash for GetElementPtr
impl Hash for GetElementPtr
Source§impl PartialEq for GetElementPtr
impl PartialEq for GetElementPtr
Source§impl TryFrom<Instruction> for GetElementPtr
impl TryFrom<Instruction> for GetElementPtr
impl StructuralPartialEq for GetElementPtr
Auto Trait Implementations§
impl Freeze for GetElementPtr
impl RefUnwindSafe for GetElementPtr
impl Send for GetElementPtr
impl Sync for GetElementPtr
impl Unpin for GetElementPtr
impl UnwindSafe for GetElementPtr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more