mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
32 lines
623 B
Rust
32 lines
623 B
Rust
/// Low-level operations that get translated directly into e.g. LLVM instructions.
|
|
/// These are always wrapped when exposed to end users, and can only make it
|
|
/// into an Expr when added directly by can::builtins
|
|
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
|
|
pub enum LowLevel {
|
|
ListLen,
|
|
ListGetUnsafe,
|
|
ListSet,
|
|
ListSetInPlace,
|
|
ListIsEmpty,
|
|
NumAdd,
|
|
NumSub,
|
|
NumMul,
|
|
NumGt,
|
|
NumGte,
|
|
NumLt,
|
|
NumLte,
|
|
NumDivUnchecked,
|
|
NumRemUnchecked,
|
|
NumAbs,
|
|
NumNeg,
|
|
NumSin,
|
|
NumCos,
|
|
NumSqrt,
|
|
NumRound,
|
|
NumToFloat,
|
|
Eq,
|
|
NotEq,
|
|
And,
|
|
Or,
|
|
Not,
|
|
}
|