mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
Low-level to extract discriminant from a tag union
This commit is contained in:
parent
7421485973
commit
fd54cdfdd1
6 changed files with 41 additions and 4 deletions
|
@ -111,6 +111,7 @@ pub enum LowLevel {
|
|||
BoxExpr,
|
||||
UnboxExpr,
|
||||
Unreachable,
|
||||
TagDiscriminant,
|
||||
}
|
||||
|
||||
macro_rules! higher_order {
|
||||
|
@ -211,12 +212,12 @@ macro_rules! map_symbol_to_lowlevel {
|
|||
LowLevel::PtrCast => unimplemented!(),
|
||||
LowLevel::RefCountInc => unimplemented!(),
|
||||
LowLevel::RefCountDec => unimplemented!(),
|
||||
LowLevel::TagDiscriminant => unimplemented!(),
|
||||
|
||||
// these are not implemented, not sure why
|
||||
LowLevel::StrFromInt => unimplemented!(),
|
||||
LowLevel::StrFromFloat => unimplemented!(),
|
||||
LowLevel::NumIsFinite => unimplemented!(),
|
||||
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue