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
Probestackprobe for stack overflow. These are emitted for functions which need
when the probestack_enabled setting is true.
CeilF32ceil.f32
CeilF64ceil.f64
FloorF32floor.f32
FloorF64floor.f64
TruncF32trunc.f32
TruncF64frunc.f64
NearestF32nearest.f32
NearestF64nearest.f64
Methods
impl LibCall[src]
impl LibCallpub 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 LibCallimpl Clone for LibCall[src]
impl Clone for LibCallfn clone(&self) -> LibCall[src]
fn clone(&self) -> LibCallReturns 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 LibCallfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for LibCall[src]
impl PartialEq for LibCallfn eq(&self, other: &LibCall) -> bool[src]
fn eq(&self, other: &LibCall) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Eq for LibCall[src]
impl Eq for LibCallimpl Display for LibCall[src]
impl Display for LibCallfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl FromStr for LibCall[src]
impl FromStr for LibCall