Enum cretonne_codegen::ir::LibCall
[−]
[src]
pub enum LibCall { CeilF32, CeilF64, FloorF32, FloorF64, TruncF32, TruncF64, NearestF32, NearestF64, }
The name of a runtime library routine.
Runtime library calls are generated for Cretonne 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, Cretonne 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
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]
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 Copy for LibCall
[src]
impl Clone for LibCall
[src]
fn clone(&self) -> LibCall
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for LibCall
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for LibCall
[src]
fn eq(&self, __arg_0: &LibCall) -> bool
[src]
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]
This method tests for !=
.
impl Eq for LibCall
[src]
impl Display for LibCall
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more