Skip to main content

RuntimeSymbol

Enum RuntimeSymbol 

Source
pub enum RuntimeSymbol {
Show 30 variants Malloc, Free, Exit, Memcpy, Memmove, Memset, Divti3, Udivti3, Modti3, Umodti3, Divdi3, Udivdi3, Moddi3, Umoddi3, Floatdidf, Floatundidf, Floatdisf, Floatundisf, Fixdfdi, Fixunsdfdi, Fixsfdi, Fixunssfdi, Floattidf, Floatuntidf, Fixdfti, Fixunsdfti, Floattisf, Floatuntisf, Fixsfti, Fixunssfti,
}
Expand description

Runtime helpers the compiler calls by name.

Each variant names a C symbol. Emission sites use the variant, never a string literal, so LAMINA_BUILTINS can retarget every one of them.

Variants§

§

Malloc

§

Free

§

Exit

§

Memcpy

§

Memmove

§

Memset

§

Divti3

compiler-rt __divti3: 128-bit integer arithmetic and conversion, called by i128 lowering.

§

Udivti3

compiler-rt __udivti3: 128-bit integer arithmetic and conversion, called by i128 lowering.

§

Modti3

compiler-rt __modti3: 128-bit integer arithmetic and conversion, called by i128 lowering.

§

Umodti3

compiler-rt __umodti3: 128-bit integer arithmetic and conversion, called by i128 lowering.

§

Divdi3

compiler-rt __divdi3: 64-bit signed division, called when a 32-bit target splits an i64.

§

Udivdi3

compiler-rt __udivdi3: 64-bit unsigned division, called when a 32-bit target splits an i64.

§

Moddi3

compiler-rt __moddi3: 64-bit signed remainder, called when a 32-bit target splits an i64.

§

Umoddi3

compiler-rt __umoddi3: 64-bit unsigned remainder, called when a 32-bit target splits an i64.

§

Floatdidf

compiler-rt __floatdidf: 64-bit integer to double, called when a 32-bit target splits an i64.

§

Floatundidf

compiler-rt __floatundidf: 64-bit unsigned to double, called when a 32-bit target splits an i64.

§

Floatdisf

compiler-rt __floatdisf: 64-bit integer to float, called when a 32-bit target splits an i64.

§

Floatundisf

compiler-rt __floatundisf: 64-bit unsigned to float, called when a 32-bit target splits an i64.

§

Fixdfdi

compiler-rt __fixdfdi: double to 64-bit integer, called when a 32-bit target splits an i64.

§

Fixunsdfdi

compiler-rt __fixunsdfdi: double to 64-bit unsigned, called when a 32-bit target splits an i64.

§

Fixsfdi

compiler-rt __fixsfdi: float to 64-bit integer, called when a 32-bit target splits an i64.

§

Fixunssfdi

compiler-rt __fixunssfdi: float to 64-bit unsigned, called when a 32-bit target splits an i64.

§

Floattidf

compiler-rt __floattidf: 128-bit integer arithmetic and conversion, called by i128 lowering.

§

Floatuntidf

compiler-rt __floatuntidf: 128-bit integer arithmetic and conversion, called by i128 lowering.

§

Fixdfti

compiler-rt __fixdfti: 128-bit integer arithmetic and conversion, called by i128 lowering.

§

Fixunsdfti

compiler-rt __fixunsdfti: 128-bit integer arithmetic and conversion, called by i128 lowering.

§

Floattisf

compiler-rt __floattisf: 128-bit integer arithmetic and conversion, called by i128 lowering.

§

Floatuntisf

compiler-rt __floatuntisf: 128-bit integer arithmetic and conversion, called by i128 lowering.

§

Fixsfti

compiler-rt __fixsfti: 128-bit integer arithmetic and conversion, called by i128 lowering.

§

Fixunssfti

compiler-rt __fixunssfti: 128-bit integer arithmetic and conversion, called by i128 lowering.

Implementations§

Source§

impl RuntimeSymbol

Source

pub const ALL: [RuntimeSymbol; 30]

Source

pub const fn c_name(self) -> &'static str

The undecorated C symbol name.

Source

pub fn from_c_name(name: &str) -> Option<Self>

Looks up a symbol by its C name, as MIR call sites spell it.

Source

pub fn from_builtin_name(name: &str) -> Option<Self>

Looks up a symbol by a LAMINA_BUILTINS key or builtin name.

Accepts the C name plus the legacy key dealloc (free).

Trait Implementations§

Source§

impl Clone for RuntimeSymbol

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for RuntimeSymbol

Source§

impl Debug for RuntimeSymbol

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for RuntimeSymbol

Source§

impl Hash for RuntimeSymbol

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for RuntimeSymbol

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for RuntimeSymbol

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.