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
Probestack
probe for stack overflow. These are emitted for functions which need
when the probestack_enabled
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
Methods
impl LibCall
[src]
impl LibCall
pub fn for_inst(opcode: Opcode, ctrl_type: Type) -> Option<Self>
[src]
pub fn for_inst(opcode: Opcode, ctrl_type: Type) -> Option<Self>
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 Copy for LibCall
impl Clone for LibCall
[src]
impl Clone for LibCall
fn clone(&self) -> LibCall
[src]
fn clone(&self) -> LibCall
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for LibCall
[src]
impl Debug for LibCall
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for LibCall
[src]
impl PartialEq for LibCall
fn eq(&self, other: &LibCall) -> bool
[src]
fn eq(&self, other: &LibCall) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Eq for LibCall
[src]
impl Eq for LibCall
impl Display for LibCall
[src]
impl Display for LibCall
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl FromStr for LibCall
[src]
impl FromStr for LibCall