Struct llvm_ir::instruction::AddrSpaceCast
source · [−]pub struct AddrSpaceCast {
pub operand: Operand,
pub to_type: TypeRef,
pub dest: Name,
pub debugloc: Option<DebugLoc>,
}
Expand description
Convert a pointer to a different address space. See LLVM 14 docs on the ‘addrspacecast’ instruction
Fields
operand: Operand
to_type: TypeRef
dest: Name
debugloc: Option<DebugLoc>
Trait Implementations
sourceimpl Clone for AddrSpaceCast
impl Clone for AddrSpaceCast
sourcefn clone(&self) -> AddrSpaceCast
fn clone(&self) -> AddrSpaceCast
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 AddrSpaceCast
impl Debug for AddrSpaceCast
sourceimpl Display for AddrSpaceCast
impl Display for AddrSpaceCast
sourceimpl From<AddrSpaceCast> for Instruction
impl From<AddrSpaceCast> for Instruction
sourcefn from(inst: AddrSpaceCast) -> Instruction
fn from(inst: AddrSpaceCast) -> Instruction
Converts to this type from the input type.
sourceimpl HasDebugLoc for AddrSpaceCast
impl HasDebugLoc for AddrSpaceCast
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 AddrSpaceCast
impl HasResult for AddrSpaceCast
fn get_result(&self) -> &Name
sourceimpl PartialEq<AddrSpaceCast> for AddrSpaceCast
impl PartialEq<AddrSpaceCast> for AddrSpaceCast
sourcefn eq(&self, other: &AddrSpaceCast) -> bool
fn eq(&self, other: &AddrSpaceCast) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl TryFrom<Instruction> for AddrSpaceCast
impl TryFrom<Instruction> for AddrSpaceCast
sourceimpl UnaryOp for AddrSpaceCast
impl UnaryOp for AddrSpaceCast
fn get_operand(&self) -> &Operand
impl StructuralPartialEq for AddrSpaceCast
Auto Trait Implementations
impl RefUnwindSafe for AddrSpaceCast
impl Send for AddrSpaceCast
impl Sync for AddrSpaceCast
impl Unpin for AddrSpaceCast
impl UnwindSafe for AddrSpaceCast
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