Compilation: introduce work stages for better work distribution

This commit is contained in:
Jacob Young
2024-07-11 11:28:58 -04:00
parent a1053e8e1d
commit 2ff49751aa
11 changed files with 114 additions and 57 deletions

View File

@@ -1625,7 +1625,7 @@ pub const Object = struct {
llvm_arg_i += 1;
const alignment = param_ty.abiAlignment(pt).toLlvm();
const arg_ptr = try buildAllocaInner(&wip, param_llvm_ty, alignment, target);
const arg_ptr = try buildAllocaInner(&wip, param.typeOfWip(&wip), alignment, target);
_ = try wip.store(.normal, param, arg_ptr, alignment);
args.appendAssumeCapacity(if (isByRef(param_ty, pt))