Add internal flag

`-internal-fast-isel`
This commit is contained in:
gingerBill
2024-09-09 14:39:53 +01:00
parent 75dd562a0a
commit 0dddd2b97e
3 changed files with 11 additions and 0 deletions

View File

@@ -3081,6 +3081,11 @@ gb_internal bool lb_generate_code(lbGenerator *gen) {
lbModule *m = entry.value;
m->target_machine = target_machine;
LLVMSetModuleDataLayout(m->mod, LLVMCreateTargetDataLayout(target_machine));
if (build_context.fast_isel) {
LLVMSetTargetMachineFastISel(m->target_machine, true);
}
array_add(&target_machines, target_machine);
}