From 3bd1b9e15f04128fa3a2c0c3c3969852b7cde9f2 Mon Sep 17 00:00:00 2001 From: Jacob Young Date: Sat, 23 Sep 2023 06:21:03 -0400 Subject: x86_64: implement and test unary float builtins --- src/InternPool.zig | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) (limited to 'src/InternPool.zig') 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); -- cgit v1.2.3