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