Get rid of old Dict implementation, use Zig wyhash, and WIP for testing Roc use of zig wyhash

This commit is contained in:
Chadtech 2021-01-12 00:59:40 -05:00
parent d3b569f6eb
commit cddd64f1c9
8 changed files with 322 additions and 498 deletions

View file

@ -74,9 +74,10 @@ pub fn gen_from_mono_module(
}
// Generate the binary
let ptr_bytes = target.pointer_width().unwrap().bytes() as u32;
let context = Context::create();
let module = arena.alloc(module_from_builtins(&context, "app"));
let module = arena.alloc(module_from_builtins(&context, "app", ptr_bytes));
// strip Zig debug stuff
// module.strip_debug_info();
@ -94,8 +95,6 @@ pub fn gen_from_mono_module(
let (dibuilder, compile_unit) = roc_gen::llvm::build::Env::new_debug_info(module);
let (mpm, fpm) = roc_gen::llvm::build::construct_optimization_passes(module, opt_level);
let ptr_bytes = target.pointer_width().unwrap().bytes() as u32;
// Compile and add all the Procs before adding main
let env = roc_gen::llvm::build::Env {
arena: &arena,