diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2023-10-01 20:45:42 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-01 20:45:42 -0400 |
| commit | 0f1652dc603ad43be733cfdd721cedf38d9e45d9 (patch) | |
| tree | 48d5f6a90d1b2435eda1fa6eb66ba4b620536d36 /src/InternPool.zig | |
| parent | 62a0fbdaef575c857a7fa5f911447dd7275c9f22 (diff) | |
| parent | da335f0ee4dfe5a736919acc5ab20777838b42c7 (diff) | |
| download | zig-0f1652dc603ad43be733cfdd721cedf38d9e45d9.tar.gz zig-0f1652dc603ad43be733cfdd721cedf38d9e45d9.zip | |
Merge pull request #17262 from jacobly0/x86_64
x86_64: support operations that are implemented in compiler_rt
Diffstat (limited to 'src/InternPool.zig')
| -rw-r--r-- | src/InternPool.zig | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/src/InternPool.zig b/src/InternPool.zig index d2073d3c67..d7c0e4861d 100644 --- a/src/InternPool.zig +++ b/src/InternPool.zig @@ -5407,19 +5407,19 @@ pub fn getAnonStructType(ip: *InternPool, gpa: Allocator, ini: AnonStructTypeIni /// This is equivalent to `Key.FuncType` but adjusted to have a slice for `param_types`. pub const GetFuncTypeKey = struct { - param_types: []Index, + param_types: []const Index, return_type: Index, - comptime_bits: u32, - noalias_bits: u32, + comptime_bits: u32 = 0, + noalias_bits: u32 = 0, /// `null` means generic. - alignment: ?Alignment, + alignment: ?Alignment = .none, /// `null` means generic. - cc: ?std.builtin.CallingConvention, - is_var_args: bool, - is_generic: bool, - is_noinline: bool, - section_is_generic: bool, - addrspace_is_generic: bool, + cc: ?std.builtin.CallingConvention = .Unspecified, + is_var_args: bool = false, + is_generic: bool = false, + is_noinline: bool = false, + section_is_generic: bool = false, + addrspace_is_generic: bool = false, }; pub fn getFuncType(ip: *InternPool, gpa: Allocator, key: GetFuncTypeKey) Allocator.Error!Index { @@ -5754,15 +5754,10 @@ pub fn getFuncInstance(ip: *InternPool, gpa: Allocator, arg: GetFuncInstanceKey) const func_ty = try ip.getFuncType(gpa, .{ .param_types = arg.param_types, .return_type = arg.bare_return_type, - .comptime_bits = 0, .noalias_bits = arg.noalias_bits, .alignment = arg.alignment, .cc = arg.cc, - .is_var_args = false, - .is_generic = false, .is_noinline = arg.is_noinline, - .section_is_generic = false, - .addrspace_is_generic = false, }); const generic_owner = unwrapCoercedFunc(ip, arg.generic_owner); |
