mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
llvm bindings
map the lowlevel op into LLVM code; it calls zig code, but the zig code does not do anything yet
This commit is contained in:
parent
2e73e47673
commit
baef33fc0c
5 changed files with 122 additions and 2 deletions
|
@ -152,6 +152,10 @@ pub fn listMapWithIndex(list: RocList, transform: Opaque, caller: Caller2, align
|
|||
}
|
||||
}
|
||||
|
||||
pub fn listMap2(list: RocList, transform: Opaque, caller: Caller1, alignment: usize, old_element_width: usize, new_element_width: usize) callconv(.C) RocList {
|
||||
unreachable;
|
||||
}
|
||||
|
||||
pub fn listKeepIf(list: RocList, transform: Opaque, caller: Caller1, alignment: usize, element_width: usize, inc: Inc, dec: Dec) callconv(.C) RocList {
|
||||
if (list.bytes) |source_ptr| {
|
||||
const size = list.len();
|
||||
|
|
|
@ -7,6 +7,7 @@ const list = @import("list.zig");
|
|||
|
||||
comptime {
|
||||
exportListFn(list.listMap, "map");
|
||||
exportListFn(list.listMap2, "map2");
|
||||
exportListFn(list.listMapWithIndex, "map_with_index");
|
||||
exportListFn(list.listKeepIf, "keep_if");
|
||||
exportListFn(list.listWalk, "walk");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue