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

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

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

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

ceil.f32

ceil.f64

floor.f32

floor.f64

trunc.f32

frunc.f64

nearest.f32

nearest.f64

Methods

impl LibCall
[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 Copy for LibCall
[src]

impl Clone for LibCall
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for LibCall
[src]

Formats the value using the given formatter. Read more

impl PartialEq for LibCall
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for LibCall
[src]

impl Display for LibCall
[src]

Formats the value using the given formatter. Read more

impl FromStr for LibCall
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Auto Trait Implementations

impl Send for LibCall

impl Sync for LibCall