[][src]Enum cranelift_codegen::ir::LibCall

pub enum LibCall {
    Probestack,
    CeilF32,
    CeilF64,
    FloorF32,
    FloorF64,
    TruncF32,
    TruncF64,
    NearestF32,
    NearestF64,
    Memcpy,
    Memset,
    Memmove,
}

The name of a runtime library routine.

Runtime library calls are generated for Cranelift IR instructions that don't have an equivalent ISA instruction or an easy macro expansion. A LibCall is used as a well-known name to refer to the runtime library routine. This way, Cranelift doesn't have to know about the naming convention in the embedding VM's runtime library.

This list is likely to grow over time.

Variants

Probestack

probe for stack overflow. These are emitted for functions which need when the enable_probestack setting is true.

CeilF32

ceil.f32

CeilF64

ceil.f64

FloorF32

floor.f32

FloorF64

floor.f64

TruncF32

trunc.f32

TruncF64

frunc.f64

NearestF32

nearest.f32

NearestF64

nearest.f64

Memcpy

libc.memcpy

Memset

libc.memset

Memmove

libc.memmove

Methods

impl LibCall[src]

pub fn for_inst(opcode: Opcode, ctrl_type: Type) -> Option<Self>[src]

Get the well-known library call name to use as a replacement for an instruction with the given opcode and controlling type variable.

Returns None if no well-known library routine name exists for that instruction.

Trait Implementations

impl Clone for LibCall[src]

impl Copy for LibCall[src]

impl Debug for LibCall[src]

impl Display for LibCall[src]

impl Eq for LibCall[src]

impl FromStr for LibCall[src]

type Err = ()

The associated error which can be returned from parsing.

impl Hash for LibCall[src]

impl PartialEq<LibCall> for LibCall[src]

impl StructuralEq for LibCall[src]

impl StructuralPartialEq for LibCall[src]

Auto Trait Implementations

impl RefUnwindSafe for LibCall

impl Send for LibCall

impl Sync for LibCall

impl Unpin for LibCall

impl UnwindSafe for LibCall

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.