mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
Str Split bitcode
This commit is contained in:
parent
bf81e67a89
commit
626d49d7b0
3 changed files with 91 additions and 12 deletions
|
@ -64,18 +64,9 @@ pub fn str_split<'a, 'ctx, 'env>(
|
|||
|
||||
let ret_list_ptr = allocate_list(env, inplace, &CHAR_LAYOUT, ret_list_len);
|
||||
|
||||
let ret_list_loop = |index| {};
|
||||
let ret_list: BasicValueEnum<'ctx> = panic!("Get return list");
|
||||
|
||||
incrementing_index_loop(
|
||||
builder,
|
||||
ctx,
|
||||
parent,
|
||||
ret_list_len,
|
||||
"str_split_ret_list_len_index",
|
||||
ret_list_loop,
|
||||
);
|
||||
|
||||
empty_list(env)
|
||||
call_bitcode_fn(env, &[ret_list, str, delimiter], "str_split_")
|
||||
},
|
||||
)
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue