Struct llvm_ir::instruction::SExt
source · [−]pub struct SExt {
pub operand: Operand,
pub to_type: TypeRef,
pub dest: Name,
pub debugloc: Option<DebugLoc>,
}
Expand description
Sign-extend. See LLVM 14 docs on the ‘sext’ instruction
Fields
operand: Operand
to_type: TypeRef
dest: Name
debugloc: Option<DebugLoc>
Trait Implementations
sourceimpl From<SExt> for Instruction
impl From<SExt> for Instruction
sourcefn from(inst: SExt) -> Instruction
fn from(inst: SExt) -> Instruction
Converts to this type from the input type.
sourceimpl HasDebugLoc for SExt
impl HasDebugLoc for SExt
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 PartialEq<SExt> for SExt
impl PartialEq<SExt> for SExt
sourceimpl TryFrom<Instruction> for SExt
impl TryFrom<Instruction> for SExt
impl StructuralPartialEq for SExt
Auto Trait Implementations
impl RefUnwindSafe for SExt
impl Send for SExt
impl Sync for SExt
impl Unpin for SExt
impl UnwindSafe for SExt
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