I created a draft PR for the discussion here:
https://github.com/roc-lang/roc/pull/6591
First time adding something, so I need some help with the llvm lowlevel
Skimmed it on my phone, base looks good. Zig may have some helpers related to floats to do it in one generic method, but that isn't too important. If no one else gets to it before me, I'll review/double check issues tonight.
Thanks, I also just thought about just moving more to roc and just have an internal f32 to u32 function in zig. Would that make sense?
I would just leave it in zig.
But doesn't particularly matter either way
I don't think I can figure LLVM out on my own.
What part exactly do you need help with?
What to write in crates/compiler/gen_llvm/src/llvm/lowlevel.rs
I can take a look tomorrow if no one else is available
Does this still need more help? I can probably look at it soon if so.
Yes I think it does.
@Brendan Hansknecht https://roc.zulipchat.com/#narrow/stream/395097-compiler-development/topic/gen.20llvm.20NumF32ToParts/near/429104409
https://github.com/roc-lang/roc/pull/6591 Should work now, can someone start the workflows?
Last updated: Jul 05 2025 at 12:14 UTC