diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2025-03-07 21:04:24 -0500 |
|---|---|---|
| committer | Jacob Young <jacobly0@users.noreply.github.com> | 2025-03-07 23:59:31 -0500 |
| commit | 54ed62755f26e491978fef275e2cf2fe0dc14508 (patch) | |
| tree | bc82cf65e202e63e02e41c7c526f757dd7e88ee2 /src/codegen | |
| parent | f8f2a3ea6f948d88b9e656f5138da53326ed8f70 (diff) | |
| download | zig-54ed62755f26e491978fef275e2cf2fe0dc14508.tar.gz zig-54ed62755f26e491978fef275e2cf2fe0dc14508.zip | |
x86_64: implement write register splitting
Diffstat (limited to 'src/codegen')
| -rw-r--r-- | src/codegen/llvm.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig index e82d75311e..bb5a8e45d8 100644 --- a/src/codegen/llvm.zig +++ b/src/codegen/llvm.zig @@ -12071,7 +12071,7 @@ fn firstParamSRet(fn_info: InternPool.Key.FuncType, zcu: *Zcu, target: std.Targe } fn firstParamSRetSystemV(ty: Type, zcu: *Zcu, target: std.Target) bool { - const class = x86_64_abi.classifySystemV(ty, zcu, target, .ret); + const class = x86_64_abi.classifySystemV(ty, zcu, &target, .ret); if (class[0] == .memory) return true; if (class[0] == .x87 and class[2] != .none) return true; return false; @@ -12181,7 +12181,7 @@ fn lowerSystemVFnRetTy(o: *Object, fn_info: InternPool.Key.FuncType) Allocator.E return o.lowerType(return_type); } const target = zcu.getTarget(); - const classes = x86_64_abi.classifySystemV(return_type, zcu, target, .ret); + const classes = x86_64_abi.classifySystemV(return_type, zcu, &target, .ret); if (classes[0] == .memory) return .void; var types_index: u32 = 0; var types_buffer: [8]Builder.Type = undefined; @@ -12459,7 +12459,7 @@ const ParamTypeIterator = struct { const zcu = it.object.pt.zcu; const ip = &zcu.intern_pool; const target = zcu.getTarget(); - const classes = x86_64_abi.classifySystemV(ty, zcu, target, .arg); + const classes = x86_64_abi.classifySystemV(ty, zcu, &target, .arg); if (classes[0] == .memory) { it.zig_index += 1; it.llvm_index += 1; |
