From 175463d75dbde1e8e4c5a55159ab4e9446fd211c Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Tue, 7 Dec 2021 19:34:44 +0100 Subject: AstGen: implement @prefetch() builtin --- src/type.zig | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/type.zig') diff --git a/src/type.zig b/src/type.zig index a293848b89..0a2b6f4675 100644 --- a/src/type.zig +++ b/src/type.zig @@ -123,6 +123,7 @@ pub const Type = extern union { .empty_struct_literal, .@"struct", .call_options, + .prefetch_options, .export_options, .extern_options, => return .Struct, @@ -798,6 +799,7 @@ pub const Type = extern union { .float_mode, .reduce_op, .call_options, + .prefetch_options, .export_options, .extern_options, .type_info, @@ -1027,6 +1029,7 @@ pub const Type = extern union { .float_mode => return writer.writeAll("std.builtin.FloatMode"), .reduce_op => return writer.writeAll("std.builtin.ReduceOp"), .call_options => return writer.writeAll("std.builtin.CallOptions"), + .prefetch_options => return writer.writeAll("std.builtin.PrefetchOptions"), .export_options => return writer.writeAll("std.builtin.ExportOptions"), .extern_options => return writer.writeAll("std.builtin.ExternOptions"), .type_info => return writer.writeAll("std.builtin.TypeInfo"), @@ -1318,6 +1321,7 @@ pub const Type = extern union { .float_mode => return "FloatMode", .reduce_op => return "ReduceOp", .call_options => return "CallOptions", + .prefetch_options => return "PrefetchOptions", .export_options => return "ExportOptions", .extern_options => return "ExternOptions", .type_info => return "TypeInfo", @@ -1376,6 +1380,7 @@ pub const Type = extern union { .float_mode, .reduce_op, .call_options, + .prefetch_options, .export_options, .extern_options, .manyptr_u8, @@ -1502,6 +1507,7 @@ pub const Type = extern union { .float_mode => return Value.initTag(.float_mode_type), .reduce_op => return Value.initTag(.reduce_op_type), .call_options => return Value.initTag(.call_options_type), + .prefetch_options => return Value.initTag(.prefetch_options_type), .export_options => return Value.initTag(.export_options_type), .extern_options => return Value.initTag(.extern_options_type), .type_info => return Value.initTag(.type_info_type), @@ -1563,6 +1569,7 @@ pub const Type = extern union { .float_mode, .reduce_op, .call_options, + .prefetch_options, .export_options, .extern_options, .@"anyframe", @@ -1750,6 +1757,7 @@ pub const Type = extern union { .float_mode, .reduce_op, .call_options, + .prefetch_options, .export_options, .extern_options, => return 1, @@ -1929,6 +1937,7 @@ pub const Type = extern union { .var_args_param => unreachable, .generic_poison => unreachable, .call_options => unreachable, // missing call to resolveTypeFields + .prefetch_options => unreachable, // missing call to resolveTypeFields .export_options => unreachable, // missing call to resolveTypeFields .extern_options => unreachable, // missing call to resolveTypeFields .type_info => unreachable, // missing call to resolveTypeFields @@ -2269,6 +2278,7 @@ pub const Type = extern union { .float_mode, .reduce_op, .call_options, + .prefetch_options, .export_options, .extern_options, .type_info, @@ -2794,6 +2804,7 @@ pub const Type = extern union { .float_mode, .reduce_op, .call_options, + .prefetch_options, .export_options, .extern_options, .type_info, @@ -3294,6 +3305,7 @@ pub const Type = extern union { .float_mode, .reduce_op, .call_options, + .prefetch_options, .export_options, .extern_options, .type_info, @@ -3502,6 +3514,7 @@ pub const Type = extern union { .float_mode, .reduce_op, .call_options, + .prefetch_options, .export_options, .extern_options, => @panic("TODO resolve std.builtin types"), @@ -3577,6 +3590,7 @@ pub const Type = extern union { .float_mode, .reduce_op, .call_options, + .prefetch_options, .export_options, .extern_options, => @panic("TODO resolve std.builtin types"), @@ -3701,6 +3715,7 @@ pub const Type = extern union { .float_mode, .reduce_op, .call_options, + .prefetch_options, .export_options, .extern_options, .type_info, @@ -3741,6 +3756,7 @@ pub const Type = extern union { .float_mode, .reduce_op, .call_options, + .prefetch_options, .export_options, .extern_options, .type_info, @@ -3801,6 +3817,7 @@ pub const Type = extern union { .float_mode, .reduce_op, .call_options, + .prefetch_options, .export_options, .extern_options, => @panic("TODO resolve std.builtin types"), @@ -3862,6 +3879,7 @@ pub const Type = extern union { float_mode, reduce_op, call_options, + prefetch_options, export_options, extern_options, type_info, @@ -3989,6 +4007,7 @@ pub const Type = extern union { .float_mode, .reduce_op, .call_options, + .prefetch_options, .export_options, .extern_options, .type_info, -- cgit v1.2.3