pub enum LibCall {
Show 17 variants Probestack, CeilF32, CeilF64, FloorF32, FloorF64, TruncF32, TruncF64, NearestF32, NearestF64, FmaF32, FmaF64, Memcpy, Memset, Memmove, Memcmp, ElfTlsGetAddr, ElfTlsGetOffset,
}
Expand description

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

FmaF32

fma.f32

FmaF64

fma.f64

Memcpy

libc.memcpy

Memset

libc.memset

Memmove

libc.memmove

Memcmp

libc.memcmp

ElfTlsGetAddr

Elf __tls_get_addr

ElfTlsGetOffset

Elf __tls_get_offset

Implementations

Get a list of all known LibCall’s.

Get a Signature for the function targeted by this LibCall.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
The associated error which can be returned from parsing.
Parses a string s to return a value of this type. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.