lowlevel isUnique

This commit is contained in:
J.Teeuwissen 2023-04-26 17:23:10 +02:00
parent 2435bdb41a
commit ed46a1f2cb
No known key found for this signature in database
GPG key ID: DB5F7A1ED8D478AD
8 changed files with 28 additions and 1 deletions

View file

@ -1251,6 +1251,11 @@ pub(crate) fn run_low_level<'a, 'ctx, 'env>(
unreachable!("Not used in LLVM backend: {:?}", op);
}
RefCountIsUnique => {
arguments!(input);
call_bitcode_fn(env, &[input], &bitcode::UTILS_IS_UNIQUE)
}
Unreachable => match RocReturn::from_layout(env, layout_interner, layout) {
RocReturn::Return => {
let basic_type = basic_type_from_layout(env, layout_interner, layout);