| ... | ... | @@ -1687,12 +1687,6 @@ pub const Object = struct { |
| 1687 | 1687 | else |
| 1688 | 1688 | try wip.load(.normal, param_llvm_ty, arg_ptr, param_alignment, "")); |
| 1689 | 1689 | }, |
| 1690 | | .as_u16 => { |
| 1691 | | assert(!it.byval_attr); |
| 1692 | | const param = wip.arg(llvm_arg_i); |
| 1693 | | llvm_arg_i += 1; |
| 1694 | | args.appendAssumeCapacity(try wip.cast(.bitcast, param, .half, "")); |
| 1695 | | }, |
| 1696 | 1690 | .float_array => { |
| 1697 | 1691 | const param_ty = Type.fromInterned(fn_info.param_types.get(ip)[it.zig_index - 1]); |
| 1698 | 1692 | const param_llvm_ty = try o.lowerType(param_ty); |
| ... | ... | @@ -3095,7 +3089,6 @@ pub const Object = struct { |
| 3095 | 3089 | .no_bits, |
| 3096 | 3090 | .abi_sized_int, |
| 3097 | 3091 | .multiple_llvm_types, |
| 3098 | | .as_u16, |
| 3099 | 3092 | .float_array, |
| 3100 | 3093 | .i32_array, |
| 3101 | 3094 | .i64_array, |
| ... | ... | @@ -3770,9 +3763,6 @@ pub const Object = struct { |
| 3770 | 3763 | .multiple_llvm_types => { |
| 3771 | 3764 | try llvm_params.appendSlice(o.gpa, it.types_buffer[0..it.types_len]); |
| 3772 | 3765 | }, |
| 3773 | | .as_u16 => { |
| 3774 | | try llvm_params.append(o.gpa, .i16); |
| 3775 | | }, |
| 3776 | 3766 | .float_array => |count| { |
| 3777 | 3767 | const param_ty = Type.fromInterned(fn_info.param_types.get(ip)[it.zig_index - 1]); |
| 3778 | 3768 | const float_ty = try o.lowerType(aarch64_c_abi.getFloatArrayType(param_ty, zcu).?); |
| ... | ... | @@ -5587,12 +5577,6 @@ pub const FuncGen = struct { |
| 5587 | 5577 | llvm_args.appendAssumeCapacity(loaded); |
| 5588 | 5578 | } |
| 5589 | 5579 | }, |
| 5590 | | .as_u16 => { |
| 5591 | | const arg = args[it.zig_index - 1]; |
| 5592 | | const llvm_arg = try self.resolveInst(arg); |
| 5593 | | const casted = try self.wip.cast(.bitcast, llvm_arg, .i16, ""); |
| 5594 | | try llvm_args.append(casted); |
| 5595 | | }, |
| 5596 | 5580 | .float_array => |count| { |
| 5597 | 5581 | const arg = args[it.zig_index - 1]; |
| 5598 | 5582 | const arg_ty = self.typeOf(arg); |
| ... | ... | @@ -5654,7 +5638,6 @@ pub const FuncGen = struct { |
| 5654 | 5638 | .no_bits, |
| 5655 | 5639 | .abi_sized_int, |
| 5656 | 5640 | .multiple_llvm_types, |
| 5657 | | .as_u16, |
| 5658 | 5641 | .float_array, |
| 5659 | 5642 | .i32_array, |
| 5660 | 5643 | .i64_array, |
| ... | ... | @@ -11968,7 +11951,6 @@ const ParamTypeIterator = struct { |
| 11968 | 11951 | abi_sized_int, |
| 11969 | 11952 | multiple_llvm_types, |
| 11970 | 11953 | slice, |
| 11971 | | as_u16, |
| 11972 | 11954 | float_array: u8, |
| 11973 | 11955 | i32_array: u8, |
| 11974 | 11956 | i64_array: u8, |
| ... | ... | @@ -12090,8 +12072,6 @@ const ParamTypeIterator = struct { |
| 12090 | 12072 | .riscv32, .riscv64 => { |
| 12091 | 12073 | it.zig_index += 1; |
| 12092 | 12074 | it.llvm_index += 1; |
| 12093 | | if (ty.toIntern() == .f16_type and |
| 12094 | | !std.Target.riscv.featureSetHas(target.cpu.features, .d)) return .as_u16; |
| 12095 | 12075 | switch (riscv_c_abi.classifyType(ty, zcu)) { |
| 12096 | 12076 | .memory => return .byref_mut, |
| 12097 | 12077 | .byval => return .byval, |