authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2026-05-02 10:59:45+01:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2026-05-03 12:23:30+01:00
log4c330e053ba45f383a7642da53482dfbce1b50cf
tree99aebc55fbb53f86feb4ecaa2f8a1946ddcfe9c1
parente133f793ee42cae28d68eaab442bf243489993d6
signaturelock-open Commit is signed but in an unrecognized format.

compiler: use 'std.lang' instead of 'std.builtin'


59 files changed, 578 insertions(+), 579 deletions(-)

build.zig+9-10
......@@ -1,5 +1,4 @@
11const std = @import("std");
2const builtin = std.builtin;
32const BufMap = std.BufMap;
43const mem = std.mem;
54const fs = std.fs;
......@@ -398,22 +397,22 @@ pub fn build(b: *std.Build) !void {
398397 const test_target_filters = b.option([]const []const u8, "test-target-filter", "Skip tests whose target triple do not match any filter") orelse &[0][]const u8{};
399398 const test_extra_targets = b.option(bool, "test-extra-targets", "Enable running module tests for additional targets") orelse false;
400399
401 var chosen_opt_modes_buf: [4]builtin.OptimizeMode = undefined;
400 var chosen_opt_modes_buf: [4]std.lang.OptimizeMode = undefined;
402401 var chosen_mode_index: usize = 0;
403402 if (!skip_debug) {
404 chosen_opt_modes_buf[chosen_mode_index] = builtin.OptimizeMode.Debug;
403 chosen_opt_modes_buf[chosen_mode_index] = .Debug;
405404 chosen_mode_index += 1;
406405 }
407406 if (!skip_release_safe) {
408 chosen_opt_modes_buf[chosen_mode_index] = builtin.OptimizeMode.ReleaseSafe;
407 chosen_opt_modes_buf[chosen_mode_index] = .ReleaseSafe;
409408 chosen_mode_index += 1;
410409 }
411410 if (!skip_release_fast) {
412 chosen_opt_modes_buf[chosen_mode_index] = builtin.OptimizeMode.ReleaseFast;
411 chosen_opt_modes_buf[chosen_mode_index] = .ReleaseFast;
413412 chosen_mode_index += 1;
414413 }
415414 if (!skip_release_small) {
416 chosen_opt_modes_buf[chosen_mode_index] = builtin.OptimizeMode.ReleaseSmall;
415 chosen_opt_modes_buf[chosen_mode_index] = .ReleaseSmall;
417416 chosen_mode_index += 1;
418417 }
419418 const optimize_modes = chosen_opt_modes_buf[0..chosen_mode_index];
......@@ -706,11 +705,11 @@ fn addWasiUpdateStep(b: *std.Build, version: [:0]const u8) !void {
706705 //
707706 // * We lose a small amount of performance. This is essentially irrelevant for zig1.
708707 //
709 // * We lose the ability to perform trivial renames on certain `std.builtin` types without
708 // * We lose the ability to perform trivial renames on certain `std.lang` types without
710709 // zig1.wasm updates. For instance, we cannot rename an enum from PascalCase fields to
711710 // snake_case fields without an update.
712711 //
713 // * We gain the ability to add and remove fields to and from `std.builtin` types without
712 // * We gain the ability to add and remove fields to and from `std.lang` types without
714713 // zig1.wasm updates. For instance, we can add a new tag to `CallingConvention` without
715714 // an update.
716715 //
......@@ -740,7 +739,7 @@ fn addWasiUpdateStep(b: *std.Build, version: [:0]const u8) !void {
740739}
741740
742741const AddCompilerModOptions = struct {
743 optimize: std.builtin.OptimizeMode,
742 optimize: std.lang.OptimizeMode,
744743 target: std.Build.ResolvedTarget,
745744 strip: ?bool = null,
746745 valgrind: ?bool = null,
......@@ -1029,7 +1028,7 @@ fn addCMakeLibraryList(mod: *std.Build.Module, list: []const u8) void {
10291028}
10301029
10311030const CMakeConfig = struct {
1032 llvm_linkage: std.builtin.LinkMode,
1031 llvm_linkage: std.lang.LinkMode,
10331032 cmake_binary_dir: []const u8,
10341033 cmake_prefix_path: []const u8,
10351034 cmake_static_library_prefix: []const u8,
lib/std/zig/Ast.zig+2-2
......@@ -2103,7 +2103,7 @@ fn fullFnProtoComponents(tree: Ast, info: full.FnProto.Components) full.FnProto
21032103}
21042104
21052105fn fullPtrTypeComponents(tree: Ast, info: full.PtrType.Components) full.PtrType {
2106 const size: std.builtin.Type.Pointer.Size = switch (tree.tokenTag(info.main_token)) {
2106 const size: std.lang.Type.Pointer.Size = switch (tree.tokenTag(info.main_token)) {
21072107 .asterisk => .one,
21082108 .l_bracket => switch (tree.tokenTag(info.main_token + 1)) {
21092109 .asterisk => if (tree.tokenTag(info.main_token + 2) == .identifier) .c else .many,
......@@ -2726,7 +2726,7 @@ pub const full = struct {
27262726 };
27272727
27282728 pub const PtrType = struct {
2729 size: std.builtin.Type.Pointer.Size,
2729 size: std.lang.Type.Pointer.Size,
27302730 allowzero_token: ?TokenIndex,
27312731 const_token: ?TokenIndex,
27322732 volatile_token: ?TokenIndex,
lib/std/zig/AstGen.zig+8-8
......@@ -4815,7 +4815,7 @@ fn structDeclInner(
48154815 scope: *Scope,
48164816 node: Ast.Node.Index,
48174817 container_decl: Ast.full.ContainerDecl,
4818 layout: std.builtin.Type.ContainerLayout,
4818 layout: std.lang.Type.ContainerLayout,
48194819 maybe_backing_int_node: Ast.Node.OptionalIndex,
48204820 name_strat: Zir.Inst.NameStrategy,
48214821) InnerError!Zir.Inst.Ref {
......@@ -5020,7 +5020,7 @@ fn tupleDecl(
50205020 scope: *Scope,
50215021 node: Ast.Node.Index,
50225022 container_decl: Ast.full.ContainerDecl,
5023 layout: std.builtin.Type.ContainerLayout,
5023 layout: std.lang.Type.ContainerLayout,
50245024 backing_int_node: Ast.Node.OptionalIndex,
50255025) InnerError!Zir.Inst.Ref {
50265026 const astgen = gz.astgen;
......@@ -5117,7 +5117,7 @@ fn unionDeclInner(
51175117 scope: *Scope,
51185118 node: Ast.Node.Index,
51195119 members: []const Ast.Node.Index,
5120 layout: std.builtin.Type.ContainerLayout,
5120 layout: std.lang.Type.ContainerLayout,
51215121 opt_arg_node: Ast.Node.OptionalIndex,
51225122 auto_enum_tok: ?Ast.TokenIndex,
51235123 name_strat: Zir.Inst.NameStrategy,
......@@ -5324,7 +5324,7 @@ fn containerDecl(
53245324
53255325 switch (tree.tokenTag(container_decl.ast.main_token)) {
53265326 .keyword_struct => {
5327 const layout: std.builtin.Type.ContainerLayout = if (container_decl.layout_token) |t| switch (tree.tokenTag(t)) {
5327 const layout: std.lang.Type.ContainerLayout = if (container_decl.layout_token) |t| switch (tree.tokenTag(t)) {
53285328 .keyword_packed => .@"packed",
53295329 .keyword_extern => .@"extern",
53305330 else => unreachable,
......@@ -5334,7 +5334,7 @@ fn containerDecl(
53345334 return rvalue(gz, ri, result, node);
53355335 },
53365336 .keyword_union => {
5337 const layout: std.builtin.Type.ContainerLayout = if (container_decl.layout_token) |t| switch (tree.tokenTag(t)) {
5337 const layout: std.lang.Type.ContainerLayout = if (container_decl.layout_token) |t| switch (tree.tokenTag(t)) {
53385338 .keyword_packed => .@"packed",
53395339 .keyword_extern => .@"extern",
53405340 else => unreachable,
......@@ -8060,7 +8060,7 @@ fn identifier(
80608060
80618061 int_type: {
80628062 if (ident_name_raw.len < 2) break :int_type;
8063 const signedness: std.builtin.Signedness = switch (ident_name_raw[0]) {
8063 const signedness: std.lang.Signedness = switch (ident_name_raw[0]) {
80648064 'u' => .unsigned,
80658065 'i' => .signed,
80668066 else => break :int_type,
......@@ -9925,7 +9925,7 @@ fn callExpr(
99259925 const astgen = gz.astgen;
99269926
99279927 const callee = try calleeExpr(gz, scope, ri.rl, override_decl_literal_type, call.ast.fn_expr);
9928 const modifier: std.builtin.CallModifier = blk: {
9928 const modifier: std.lang.CallModifier = blk: {
99299929 if (gz.nosuspend_node != .none) {
99309930 break :blk .no_suspend;
99319931 }
......@@ -12350,7 +12350,7 @@ const GenZir = struct {
1235012350 fn setStruct(gz: *GenZir, inst: Zir.Inst.Index, args: struct {
1235112351 src_node: Ast.Node.Index,
1235212352 name_strat: Zir.Inst.NameStrategy,
12353 layout: std.builtin.Type.ContainerLayout,
12353 layout: std.lang.Type.ContainerLayout,
1235412354 backing_int_type_body_len: ?u32,
1235512355 decls_len: u32,
1235612356 fields_len: u32,
lib/std/zig/LibCInstallation.zig+2-2
......@@ -703,8 +703,8 @@ pub const CrtBasenames = struct {
703703 pub const GetArgs = struct {
704704 target: *const std.Target,
705705 link_libc: bool,
706 output_mode: std.builtin.OutputMode,
707 link_mode: std.builtin.LinkMode,
706 output_mode: std.lang.OutputMode,
707 link_mode: std.lang.LinkMode,
708708 pie: bool,
709709 };
710710
lib/std/zig/Zir.zig+10-10
......@@ -2418,7 +2418,7 @@ pub const Inst = struct {
24182418 has_bit_range: bool,
24192419 _: u1 = 0,
24202420 },
2421 size: std.builtin.Type.Pointer.Size,
2421 size: std.lang.Type.Pointer.Size,
24222422 /// Index into extra. See `PtrType`.
24232423 payload_index: u32,
24242424 },
......@@ -2426,7 +2426,7 @@ pub const Inst = struct {
24262426 /// Offset from Decl AST node index.
24272427 /// `Tag` determines which kind of AST node this points to.
24282428 src_node: Ast.Node.Offset,
2429 signedness: std.builtin.Signedness,
2429 signedness: std.lang.Signedness,
24302430 bit_count: u16,
24312431 },
24322432 @"unreachable": struct {
......@@ -3051,7 +3051,7 @@ pub const Inst = struct {
30513051 callee: Ref,
30523052
30533053 pub const Flags = packed struct {
3054 /// std.builtin.CallModifier in packed form
3054 /// std.lang.CallModifier in packed form
30553055 pub const PackedModifier = u3;
30563056 pub const PackedArgsLen = u27;
30573057
......@@ -3063,7 +3063,7 @@ pub const Inst = struct {
30633063 comptime {
30643064 if (@sizeOf(Flags) != 4 or @bitSizeOf(Flags) != 32)
30653065 @compileError("Layout of Call.Flags needs to be updated!");
3066 if (@bitSizeOf(std.builtin.CallModifier) != @bitSizeOf(PackedModifier))
3066 if (@bitSizeOf(std.lang.CallModifier) != @bitSizeOf(PackedModifier))
30673067 @compileError("Call.Flags.PackedModifier needs to be updated!");
30683068 }
30693069 };
......@@ -3186,7 +3186,7 @@ pub const Inst = struct {
31863186
31873187 pub const ReifySliceArgInfo = enum(u16) {
31883188 /// Input element type is `type`.
3189 /// Output element type is `std.builtin.Type.Fn.Param.Attributes`.
3189 /// Output element type is `std.lang.Type.Fn.Param.Attributes`.
31903190 type_to_fn_param_attrs,
31913191 /// Input element type is `[]const u8`.
31923192 /// Output element type is `type`.
......@@ -3194,10 +3194,10 @@ pub const Inst = struct {
31943194 /// Identical to `string_to_struct_field_type` aside from emitting slightly different error messages.
31953195 string_to_union_field_type,
31963196 /// Input element type is `[]const u8`.
3197 /// Output element type is `std.builtin.Type.StructField.Attributes`.
3197 /// Output element type is `std.lang.Type.StructField.Attributes`.
31983198 string_to_struct_field_attrs,
31993199 /// Input element type is `[]const u8`.
3200 /// Output element type is `std.builtin.Type.UnionField.Attributes`.
3200 /// Output element type is `std.lang.Type.UnionField.Attributes`.
32013201 string_to_union_field_attrs,
32023202 };
32033203
......@@ -3468,7 +3468,7 @@ pub const Inst = struct {
34683468 has_decls_len: bool,
34693469 has_fields_len: bool,
34703470 name_strategy: NameStrategy,
3471 layout: std.builtin.Type.ContainerLayout,
3471 layout: std.lang.Type.ContainerLayout,
34723472 /// Always `false` if `layout != .@"packed"`.
34733473 has_backing_int_type: bool,
34743474 any_field_aligns: bool,
......@@ -3688,7 +3688,7 @@ pub const Inst = struct {
36883688 };
36893689 }
36903690
3691 pub fn layout(k: Kind) std.builtin.Type.ContainerLayout {
3691 pub fn layout(k: Kind) std.lang.Type.ContainerLayout {
36923692 return switch (k) {
36933693 .auto, .tagged_explicit, .tagged_enum, .tagged_enum_explicit => .auto,
36943694 .@"extern" => .@"extern",
......@@ -5286,7 +5286,7 @@ pub const UnwrappedStructDecl = struct {
52865286
52875287 decls: []const Inst.Index,
52885288
5289 layout: std.builtin.Type.ContainerLayout,
5289 layout: std.lang.Type.ContainerLayout,
52905290 backing_int_type_body: ?[]const Inst.Index,
52915291
52925292 field_names: []const NullTerminatedString,
lib/std/zig/llvm/Builder.zig+1-1
......@@ -1830,7 +1830,7 @@ pub const Visibility = enum(u2) {
18301830 hidden = 1,
18311831 protected = 2,
18321832
1833 pub fn fromSymbolVisibility(sv: std.builtin.SymbolVisibility) Visibility {
1833 pub fn fromSymbolVisibility(sv: std.lang.SymbolVisibility) Visibility {
18341834 return switch (sv) {
18351835 .default => .default,
18361836 .hidden => .hidden,
src/Air.zig+14-14
......@@ -1260,17 +1260,17 @@ pub const Inst = struct {
12601260 },
12611261 atomic_load: struct {
12621262 ptr: Ref,
1263 order: std.builtin.AtomicOrder,
1263 order: std.lang.AtomicOrder,
12641264 },
12651265 prefetch: struct {
12661266 ptr: Ref,
1267 rw: std.builtin.PrefetchOptions.Rw,
1267 rw: std.lang.PrefetchOptions.Rw,
12681268 locality: u2,
1269 cache: std.builtin.PrefetchOptions.Cache,
1269 cache: std.lang.PrefetchOptions.Cache,
12701270 },
12711271 reduce: struct {
12721272 operand: Ref,
1273 operation: std.builtin.ReduceOp,
1273 operation: std.lang.ReduceOp,
12741274 },
12751275 ty_nav: struct {
12761276 ty: InternPool.Index,
......@@ -1332,8 +1332,8 @@ pub const CondBr = struct {
13321332 else_body_len: u32,
13331333 branch_hints: BranchHints,
13341334 pub const BranchHints = packed struct(u32) {
1335 true: std.builtin.BranchHint = .none,
1336 false: std.builtin.BranchHint = .none,
1335 true: std.lang.BranchHint = .none,
1336 false: std.lang.BranchHint = .none,
13371337 then_cov: CoveragePoint = .none,
13381338 else_cov: CoveragePoint = .none,
13391339 _: u24 = 0,
......@@ -1499,11 +1499,11 @@ pub const Cmpxchg = struct {
14991499 /// 0b00000000000000000000000000XXX000 - failure_order
15001500 flags: u32,
15011501
1502 pub fn successOrder(self: Cmpxchg) std.builtin.AtomicOrder {
1502 pub fn successOrder(self: Cmpxchg) std.lang.AtomicOrder {
15031503 return @enumFromInt(@as(u3, @truncate(self.flags)));
15041504 }
15051505
1506 pub fn failureOrder(self: Cmpxchg) std.builtin.AtomicOrder {
1506 pub fn failureOrder(self: Cmpxchg) std.lang.AtomicOrder {
15071507 return @enumFromInt(@as(u3, @intCast(self.flags >> 3)));
15081508 }
15091509};
......@@ -1514,11 +1514,11 @@ pub const AtomicRmw = struct {
15141514 /// 0b0000000000000000000000000XXXX000 - op
15151515 flags: u32,
15161516
1517 pub fn ordering(self: AtomicRmw) std.builtin.AtomicOrder {
1517 pub fn ordering(self: AtomicRmw) std.lang.AtomicOrder {
15181518 return @enumFromInt(@as(u3, @truncate(self.flags)));
15191519 }
15201520
1521 pub fn op(self: AtomicRmw) std.builtin.AtomicRmwOp {
1521 pub fn op(self: AtomicRmw) std.lang.AtomicRmwOp {
15221522 return @enumFromInt(@as(u4, @intCast(self.flags >> 3)));
15231523 }
15241524};
......@@ -2077,14 +2077,14 @@ pub const UnwrappedSwitch = struct {
20772077 cases_start: u32,
20782078
20792079 /// Asserts that `case_idx < us.cases_len`.
2080 pub fn getHint(us: UnwrappedSwitch, case_idx: u32) std.builtin.BranchHint {
2080 pub fn getHint(us: UnwrappedSwitch, case_idx: u32) std.lang.BranchHint {
20812081 assert(case_idx < us.cases_len);
20822082 return us.getHintInner(case_idx);
20832083 }
2084 pub fn getElseHint(us: UnwrappedSwitch) std.builtin.BranchHint {
2084 pub fn getElseHint(us: UnwrappedSwitch) std.lang.BranchHint {
20852085 return us.getHintInner(us.cases_len);
20862086 }
2087 fn getHintInner(us: UnwrappedSwitch, idx: u32) std.builtin.BranchHint {
2087 fn getHintInner(us: UnwrappedSwitch, idx: u32) std.lang.BranchHint {
20882088 const bag = us.air.extra.items[us.branch_hints_start..][idx / 10];
20892089 const bits: u3 = @truncate(bag >> @intCast(3 * (idx % 10)));
20902090 return @enumFromInt(bits);
......@@ -2630,7 +2630,7 @@ pub const CompilerRtFunc = enum(u32) {
26302630 };
26312631 }
26322632
2633 pub fn @"callconv"(f: CompilerRtFunc, target: *const std.Target) std.builtin.CallingConvention {
2633 pub fn @"callconv"(f: CompilerRtFunc, target: *const std.Target) std.lang.CallingConvention {
26342634 const use_gnu_f16_abi = switch (target.cpu.arch) {
26352635 .wasm32,
26362636 .wasm64,
src/Air/print.zig+1-1
......@@ -625,7 +625,7 @@ const Writer = struct {
625625 w: *Writer,
626626 s: *std.Io.Writer,
627627 inst: Air.Inst.Index,
628 order: std.builtin.AtomicOrder,
628 order: std.lang.AtomicOrder,
629629 ) Error!void {
630630 const bin_op = w.air.instructions.items(.data)[@intFromEnum(inst)].bin_op;
631631 try w.writeOperand(s, inst, 0, bin_op.lhs);
src/Builtin.zig+7-7
......@@ -1,13 +1,13 @@
11target: std.Target,
2zig_backend: std.builtin.CompilerBackend,
3output_mode: std.builtin.OutputMode,
4link_mode: std.builtin.LinkMode,
5unwind_tables: std.builtin.UnwindTables,
2zig_backend: std.lang.CompilerBackend,
3output_mode: std.lang.OutputMode,
4link_mode: std.lang.LinkMode,
5unwind_tables: std.lang.UnwindTables,
66is_test: bool,
77single_threaded: bool,
88link_libc: bool,
99link_libcpp: bool,
10optimize_mode: std.builtin.OptimizeMode,
10optimize_mode: std.lang.OptimizeMode,
1111error_tracing: bool,
1212valgrind: bool,
1313sanitize_thread: bool,
......@@ -15,9 +15,9 @@ fuzz: bool,
1515pic: bool,
1616pie: bool,
1717strip: bool,
18code_model: std.builtin.CodeModel,
18code_model: std.lang.CodeModel,
1919omit_frame_pointer: bool,
20wasi_exec_model: std.builtin.WasiExecModel,
20wasi_exec_model: std.lang.WasiExecModel,
2121
2222/// Compute an abstract hash representing this `Builtin`. This is *not* a hash
2323/// of the resulting file contents.
src/Compilation.zig+12-12
......@@ -177,7 +177,7 @@ verbose_link: bool,
177177link_depfile: ?[]const u8,
178178disable_c_depfile: bool,
179179stack_report: bool,
180debug_compiler_runtime_libs: ?std.builtin.OptimizeMode,
180debug_compiler_runtime_libs: ?std.lang.OptimizeMode,
181181debug_compile_errors: bool,
182182/// Do not check this field directly. Instead, use the `debugIncremental` wrapper function.
183183debug_incremental: bool,
......@@ -1676,7 +1676,7 @@ pub const CreateOptions = struct {
16761676 verbose_llvm_bc: ?[]const u8 = null,
16771677 link_depfile: ?[]const u8 = null,
16781678 verbose_llvm_cpu_features: bool = false,
1679 debug_compiler_runtime_libs: ?std.builtin.OptimizeMode = null,
1679 debug_compiler_runtime_libs: ?std.lang.OptimizeMode = null,
16801680 debug_compile_errors: bool = false,
16811681 debug_incremental: bool = false,
16821682 /// Normally when you create a `Compilation`, Zig will automatically build
......@@ -4928,8 +4928,8 @@ fn workerDocsWasmFallible(comp: *Compilation, prog_node: std.Progress.Node) SubU
49284928 defer arena_allocator.deinit();
49294929 const arena = arena_allocator.allocator();
49304930
4931 const optimize_mode = std.builtin.OptimizeMode.ReleaseSmall;
4932 const output_mode = std.builtin.OutputMode.Exe;
4931 const optimize_mode = std.lang.OptimizeMode.ReleaseSmall;
4932 const output_mode = std.lang.OutputMode.Exe;
49334933 const resolved_target: Package.Module.ResolvedTarget = .{
49344934 .result = std.zig.system.resolveTargetQuery(io, .{
49354935 .cpu_arch = .wasm32,
......@@ -5285,8 +5285,8 @@ fn buildRt(
52855285 comp: *Compilation,
52865286 root_source_name: []const u8,
52875287 root_name: []const u8,
5288 output_mode: std.builtin.OutputMode,
5289 link_mode: std.builtin.LinkMode,
5288 output_mode: std.lang.OutputMode,
5289 link_mode: std.lang.LinkMode,
52905290 misc_task: MiscTask,
52915291 prog_node: std.Progress.Node,
52925292 options: RtOptions,
......@@ -7260,7 +7260,7 @@ fn dumpArgvWriter(w: *Io.Writer, argv: []const []const u8) Io.Writer.Error!void
72607260 try w.writeByte('\n');
72617261}
72627262
7263pub fn getZigBackend(comp: Compilation) std.builtin.CompilerBackend {
7263pub fn getZigBackend(comp: Compilation) std.lang.CompilerBackend {
72647264 const target = &comp.root_mod.resolved_target.result;
72657265 return target_util.zigBackend(target, comp.config.use_llvm);
72667266}
......@@ -7302,8 +7302,8 @@ fn buildOutputFromZig(
73027302 comp: *Compilation,
73037303 src_basename: []const u8,
73047304 root_name: []const u8,
7305 output_mode: std.builtin.OutputMode,
7306 link_mode: std.builtin.LinkMode,
7305 output_mode: std.lang.OutputMode,
7306 link_mode: std.lang.LinkMode,
73077307 misc_task_tag: MiscTask,
73087308 prog_node: std.Progress.Node,
73097309 options: RtOptions,
......@@ -7433,7 +7433,7 @@ pub const CrtFileOptions = struct {
74337433 function_sections: bool = true,
74347434 data_sections: bool = true,
74357435 omit_frame_pointer: ?bool = null,
7436 unwind_tables: ?std.builtin.UnwindTables = null,
7436 unwind_tables: ?std.lang.UnwindTables = null,
74377437 pic: ?bool = null,
74387438 no_builtin: ?bool = null,
74397439
......@@ -7443,7 +7443,7 @@ pub const CrtFileOptions = struct {
74437443pub fn build_crt_file(
74447444 comp: *Compilation,
74457445 root_name: []const u8,
7446 output_mode: std.builtin.OutputMode,
7446 output_mode: std.lang.OutputMode,
74477447 misc_task_tag: MiscTask,
74487448 prog_node: std.Progress.Node,
74497449 /// These elements have to get mutated to add the owner module after it is
......@@ -7657,7 +7657,7 @@ pub fn addLinkLib(comp: *Compilation, lib_name: []const u8) !void {
76577657
76587658/// This decides the optimization mode for all zig-provided libraries, including
76597659/// compiler-rt, libcxx, libc, libunwind, etc.
7660pub fn compilerRtOptMode(comp: Compilation) std.builtin.OptimizeMode {
7660pub fn compilerRtOptMode(comp: Compilation) std.lang.OptimizeMode {
76617661 if (comp.debug_compiler_runtime_libs) |mode| {
76627662 return mode;
76637663 }
src/Compilation/Config.zig+8-8
......@@ -4,8 +4,8 @@
44//! order to resolve per-Module defaults.
55
66have_zcu: bool,
7output_mode: std.builtin.OutputMode,
8link_mode: std.builtin.LinkMode,
7output_mode: std.lang.OutputMode,
8link_mode: std.lang.LinkMode,
99link_libc: bool,
1010link_libcpp: bool,
1111link_libunwind: bool,
......@@ -53,13 +53,13 @@ lto: std.zig.LtoMode,
5353incremental: bool,
5454/// WASI-only. Type of WASI execution model ("command" or "reactor").
5555/// Always set to `command` for non-WASI targets.
56wasi_exec_model: std.builtin.WasiExecModel,
56wasi_exec_model: std.lang.WasiExecModel,
5757import_memory: bool,
5858export_memory: bool,
5959shared_memory: bool,
6060is_test: bool,
6161debug_format: DebugFormat,
62root_optimize_mode: std.builtin.OptimizeMode,
62root_optimize_mode: std.lang.OptimizeMode,
6363root_strip: bool,
6464root_error_tracing: bool,
6565dll_export_fns: bool,
......@@ -75,15 +75,15 @@ pub const DebugFormat = union(enum) {
7575};
7676
7777pub const Options = struct {
78 output_mode: std.builtin.OutputMode,
78 output_mode: std.lang.OutputMode,
7979 resolved_target: Module.ResolvedTarget,
8080 is_test: bool,
8181 have_zcu: bool,
8282 emit_bin: bool,
83 root_optimize_mode: ?std.builtin.OptimizeMode = null,
83 root_optimize_mode: ?std.lang.OptimizeMode = null,
8484 root_strip: ?bool = null,
8585 root_error_tracing: ?bool = null,
86 link_mode: ?std.builtin.LinkMode = null,
86 link_mode: ?std.lang.LinkMode = null,
8787 ensure_libc_on_non_freestanding: bool = false,
8888 ensure_libcpp_on_non_freestanding: bool = false,
8989 any_non_single_threaded: bool = false,
......@@ -109,7 +109,7 @@ pub const Options = struct {
109109 lto: ?std.zig.LtoMode = null,
110110 incremental: bool = false,
111111 /// WASI-only. Type of WASI execution model ("command" or "reactor").
112 wasi_exec_model: ?std.builtin.WasiExecModel = null,
112 wasi_exec_model: ?std.lang.WasiExecModel = null,
113113 import_memory: ?bool = null,
114114 export_memory: ?bool = null,
115115 shared_memory: ?bool = null,
src/InternPool.zig+51-51
......@@ -566,7 +566,7 @@ pub const Nav = struct {
566566 type: InternPool.Index,
567567 @"align": Alignment,
568568 @"linksection": OptionalNullTerminatedString,
569 @"addrspace": std.builtin.AddressSpace,
569 @"addrspace": std.lang.AddressSpace,
570570 @"const": bool,
571571 @"threadlocal": bool,
572572 /// This field is whether this `Nav` is a literal `extern` definition.
......@@ -678,7 +678,7 @@ pub const Nav = struct {
678678
679679 const Bits = packed struct(u16) {
680680 @"align": Alignment,
681 @"addrspace": std.builtin.AddressSpace,
681 @"addrspace": std.lang.AddressSpace,
682682 @"const": bool,
683683 @"threadlocal": bool,
684684 is_extern_decl: bool,
......@@ -1084,7 +1084,7 @@ const Local = struct {
10841084 }
10851085 }
10861086 fn PtrElem(comptime opts: struct {
1087 size: std.builtin.Type.Pointer.Size,
1087 size: std.lang.Type.Pointer.Size,
10881088 is_const: bool = false,
10891089 }) type {
10901090 const elem_info = @typeInfo(Elem).@"struct";
......@@ -2029,7 +2029,7 @@ pub const Key = union(enum) {
20292029 val: Index,
20302030 };
20312031
2032 pub const IntType = std.builtin.Type.Int;
2032 pub const IntType = std.lang.Type.Int;
20332033
20342034 /// Extern for hashing via memory reinterpretation.
20352035 pub const ErrorUnionType = extern struct {
......@@ -2090,8 +2090,8 @@ pub const Key = union(enum) {
20902090 bit_offset: u16,
20912091 };
20922092
2093 pub const Size = std.builtin.Type.Pointer.Size;
2094 pub const AddressSpace = std.builtin.AddressSpace;
2093 pub const Size = std.lang.Type.Pointer.Size;
2094 pub const AddressSpace = std.lang.AddressSpace;
20952095 };
20962096
20972097 /// Extern so that hashing can be done via memory reinterpreting.
......@@ -2160,7 +2160,7 @@ pub const Key = union(enum) {
21602160 /// Tells whether a parameter is noalias. See `paramIsNoalias` helper
21612161 /// method for accessing this.
21622162 noalias_bits: u32,
2163 cc: std.builtin.CallingConvention,
2163 cc: std.lang.CallingConvention,
21642164 is_var_args: bool,
21652165 is_noinline: bool,
21662166
......@@ -2207,15 +2207,15 @@ pub const Key = union(enum) {
22072207 /// For example `extern "c" fn write(...) usize` would have 'c' as library name.
22082208 /// Index into the string table bytes.
22092209 lib_name: OptionalNullTerminatedString,
2210 linkage: std.builtin.GlobalLinkage,
2211 visibility: std.builtin.SymbolVisibility,
2210 linkage: std.lang.GlobalLinkage,
2211 visibility: std.lang.SymbolVisibility,
22122212 is_threadlocal: bool,
22132213 is_dll_import: bool,
2214 relocation: std.builtin.ExternOptions.Relocation,
2215 decoration: ?std.builtin.ExternOptions.Decoration,
2214 relocation: std.lang.ExternOptions.Relocation,
2215 decoration: ?std.lang.ExternOptions.Decoration,
22162216 is_const: bool,
22172217 alignment: Alignment,
2218 @"addrspace": std.builtin.AddressSpace,
2218 @"addrspace": std.lang.AddressSpace,
22192219 /// The ZIR instruction which created this extern; used only for source locations.
22202220 /// This is a `declaration`.
22212221 zir_index: TrackedInst.Index,
......@@ -2289,7 +2289,7 @@ pub const Key = union(enum) {
22892289 return @atomicLoad(FuncAnalysis, func.analysisPtr(ip), .unordered);
22902290 }
22912291
2292 pub fn setBranchHint(func: Func, ip: *InternPool, io: Io, hint: std.builtin.BranchHint) void {
2292 pub fn setBranchHint(func: Func, ip: *InternPool, io: Io, hint: std.lang.BranchHint) void {
22932293 const extra_mutex = &ip.getLocal(func.tid).mutate.extra.mutex;
22942294 extra_mutex.lockUncancelable(io);
22952295 defer extra_mutex.unlock(io);
......@@ -3186,7 +3186,7 @@ pub const LoadedStructType = struct {
31863186 name_nav: Nav.Index.Optional,
31873187 namespace: NamespaceIndex,
31883188
3189 layout: std.builtin.Type.ContainerLayout,
3189 layout: std.lang.Type.ContainerLayout,
31903190 /// May be `undefined` if `layout != .@"packed"`.
31913191 packed_backing_mode: BackingTypeMode,
31923192
......@@ -3369,7 +3369,7 @@ pub const LoadedUnionType = struct {
33693369 name_nav: Nav.Index.Optional,
33703370 namespace: NamespaceIndex,
33713371
3372 layout: std.builtin.Type.ContainerLayout,
3372 layout: std.lang.Type.ContainerLayout,
33733373 enum_tag_mode: BackingTypeMode,
33743374 /// May be `undefined` if `layout != .@"packed"`.
33753375 packed_backing_mode: BackingTypeMode,
......@@ -5368,10 +5368,10 @@ pub const Tag = enum(u8) {
53685368 descriptor_binding: u32,
53695369
53705370 pub const Flags = packed struct(u32) {
5371 linkage: std.builtin.GlobalLinkage,
5372 visibility: std.builtin.SymbolVisibility,
5371 linkage: std.lang.GlobalLinkage,
5372 visibility: std.lang.SymbolVisibility,
53735373 is_dll_import: bool,
5374 relocation: std.builtin.ExternOptions.Relocation,
5374 relocation: std.lang.ExternOptions.Relocation,
53755375 source: Source,
53765376 decoration_type: DecorationType,
53775377 _: u23 = 0,
......@@ -5380,13 +5380,13 @@ pub const Tag = enum(u8) {
53805380 pub const DecorationType = enum(u2) { none, location, descriptor };
53815381 };
53825382
5383 pub fn decoration(self: Extern) ?std.builtin.ExternOptions.Decoration {
5383 pub fn decoration(self: Extern) ?std.lang.ExternOptions.Decoration {
53845384 return switch (self.flags.decoration_type) {
53855385 .none => null,
5386 .location => std.builtin.ExternOptions.Decoration{
5386 .location => std.lang.ExternOptions.Decoration{
53875387 .location = self.location_or_descriptor_set,
53885388 },
5389 .descriptor => std.builtin.ExternOptions.Decoration{ .descriptor = .{ .set = self.location_or_descriptor_set, .binding = self.descriptor_binding } },
5389 .descriptor => std.lang.ExternOptions.Decoration{ .descriptor = .{ .set = self.location_or_descriptor_set, .binding = self.descriptor_binding } },
53905390 };
53915391 }
53925392 };
......@@ -5711,7 +5711,7 @@ pub const BackingTypeMode = enum(u1) {
57115711/// to be part of the type of the function.
57125712pub const FuncAnalysis = packed struct(u32) {
57135713 want_runtime_analysis: bool,
5714 branch_hint: std.builtin.BranchHint,
5714 branch_hint: std.lang.BranchHint,
57155715 is_noinline: bool,
57165716 has_error_trace: bool,
57175717 /// True if this function has an inferred error set.
......@@ -7980,7 +7980,7 @@ pub fn getDeclaredStructType(
79807980 // InternPool, so that it is possible for their backing storage to be "reallocated" as needed
79817981 // during type resolution.
79827982 fields_len: u32,
7983 layout: std.builtin.Type.ContainerLayout,
7983 layout: std.lang.Type.ContainerLayout,
79847984 any_comptime_fields: bool,
79857985 any_field_defaults: bool,
79867986 any_field_aligns: bool,
......@@ -8124,7 +8124,7 @@ pub fn getReifiedStructType(ip: *InternPool, gpa: Allocator, io: Io, tid: Zcu.Pe
81248124 zir_index: TrackedInst.Index,
81258125 type_hash: u64,
81268126 fields_len: u32,
8127 layout: std.builtin.Type.ContainerLayout,
8127 layout: std.lang.Type.ContainerLayout,
81288128 any_comptime_fields: bool,
81298129 any_field_defaults: bool,
81308130 any_field_aligns: bool,
......@@ -8300,7 +8300,7 @@ pub fn getDeclaredUnionType(
83008300 // InternPool, so that it is possible for their backing storage to be "reallocated" as needed
83018301 // during type resolution.
83028302 fields_len: u32,
8303 layout: std.builtin.Type.ContainerLayout,
8303 layout: std.lang.Type.ContainerLayout,
83048304 any_field_aligns: bool,
83058305 tag_usage: LoadedUnionType.TagUsage,
83068306 enum_tag_mode: BackingTypeMode,
......@@ -8421,7 +8421,7 @@ pub fn getReifiedUnionType(ip: *InternPool, gpa: Allocator, io: Io, tid: Zcu.Per
84218421 zir_index: TrackedInst.Index,
84228422 type_hash: u64,
84238423 fields_len: u32,
8424 layout: std.builtin.Type.ContainerLayout,
8424 layout: std.lang.Type.ContainerLayout,
84258425 any_field_aligns: bool,
84268426 tag_usage: LoadedUnionType.TagUsage,
84278427 /// Explicitly specified enum tag type. `.none` if `tag_usage != .tagged`.
......@@ -8969,7 +8969,7 @@ pub const GetFuncTypeKey = struct {
89698969 comptime_bits: u32 = 0,
89708970 noalias_bits: u32 = 0,
89718971 /// `null` means generic.
8972 cc: ?std.builtin.CallingConvention = .auto,
8972 cc: ?std.lang.CallingConvention = .auto,
89738973 is_var_args: bool = false,
89748974 is_noinline: bool = false,
89758975};
......@@ -9117,7 +9117,7 @@ pub const GetFuncDeclKey = struct {
91179117 rbrace_line: u32,
91189118 lbrace_column: u32,
91199119 rbrace_column: u32,
9120 cc: ?std.builtin.CallingConvention,
9120 cc: ?std.lang.CallingConvention,
91219121 is_noinline: bool,
91229122};
91239123
......@@ -9193,7 +9193,7 @@ pub const GetFuncDeclIesKey = struct {
91939193 comptime_bits: u32,
91949194 bare_return_type: Index,
91959195 /// null means generic.
9196 cc: ?std.builtin.CallingConvention,
9196 cc: ?std.lang.CallingConvention,
91979197 is_var_args: bool,
91989198 is_noinline: bool,
91999199 zir_body_inst: TrackedInst.Index,
......@@ -11763,7 +11763,7 @@ pub fn getBackingAddrTag(ip: *const InternPool, val: Index) ?Key.Ptr.BaseAddr.Ta
1176311763/// This is a particularly hot function, so we operate directly on encodings
1176411764/// rather than the more straightforward implementation of calling `indexToKey`.
1176511765/// Asserts `index` is not `.generic_poison_type`.
11766pub fn zigTypeTag(ip: *const InternPool, index: Index) std.builtin.TypeId {
11766pub fn zigTypeTag(ip: *const InternPool, index: Index) std.lang.TypeId {
1176711767 return switch (index) {
1176811768 .u0_type,
1176911769 .u1_type,
......@@ -12407,13 +12407,13 @@ pub fn getErrorValueIfExists(ip: *const InternPool, name: NullTerminatedString)
1240712407}
1240812408
1240912409const PackedCallingConvention = packed struct(u18) {
12410 tag: std.builtin.CallingConvention.Tag,
12410 tag: std.lang.CallingConvention.Tag,
1241112411 /// May be ignored depending on `tag`.
1241212412 incoming_stack_alignment: Alignment,
1241312413 /// Interpretation depends on `tag`.
1241412414 extra: u4,
1241512415
12416 fn pack(cc: std.builtin.CallingConvention) PackedCallingConvention {
12416 fn pack(cc: std.lang.CallingConvention) PackedCallingConvention {
1241712417 return switch (cc) {
1241812418 inline else => |pl, tag| switch (@TypeOf(pl)) {
1241912419 void => .{
......@@ -12421,42 +12421,42 @@ const PackedCallingConvention = packed struct(u18) {
1242112421 .incoming_stack_alignment = .none, // unused
1242212422 .extra = 0, // unused
1242312423 },
12424 std.builtin.CallingConvention.CommonOptions => .{
12424 std.lang.CallingConvention.CommonOptions => .{
1242512425 .tag = tag,
1242612426 .incoming_stack_alignment = .fromByteUnits(pl.incoming_stack_alignment orelse 0),
1242712427 .extra = 0, // unused
1242812428 },
12429 std.builtin.CallingConvention.X86RegparmOptions => .{
12429 std.lang.CallingConvention.X86RegparmOptions => .{
1243012430 .tag = tag,
1243112431 .incoming_stack_alignment = .fromByteUnits(pl.incoming_stack_alignment orelse 0),
1243212432 .extra = pl.register_params,
1243312433 },
12434 std.builtin.CallingConvention.ArcInterruptOptions => .{
12434 std.lang.CallingConvention.ArcInterruptOptions => .{
1243512435 .tag = tag,
1243612436 .incoming_stack_alignment = .fromByteUnits(pl.incoming_stack_alignment orelse 0),
1243712437 .extra = @intFromEnum(pl.type),
1243812438 },
12439 std.builtin.CallingConvention.ArmInterruptOptions => .{
12439 std.lang.CallingConvention.ArmInterruptOptions => .{
1244012440 .tag = tag,
1244112441 .incoming_stack_alignment = .fromByteUnits(pl.incoming_stack_alignment orelse 0),
1244212442 .extra = @intFromEnum(pl.type),
1244312443 },
12444 std.builtin.CallingConvention.MicroblazeInterruptOptions => .{
12444 std.lang.CallingConvention.MicroblazeInterruptOptions => .{
1244512445 .tag = tag,
1244612446 .incoming_stack_alignment = .fromByteUnits(pl.incoming_stack_alignment orelse 0),
1244712447 .extra = @intFromEnum(pl.type),
1244812448 },
12449 std.builtin.CallingConvention.MipsInterruptOptions => .{
12449 std.lang.CallingConvention.MipsInterruptOptions => .{
1245012450 .tag = tag,
1245112451 .incoming_stack_alignment = .fromByteUnits(pl.incoming_stack_alignment orelse 0),
1245212452 .extra = @intFromEnum(pl.mode),
1245312453 },
12454 std.builtin.CallingConvention.RiscvInterruptOptions => .{
12454 std.lang.CallingConvention.RiscvInterruptOptions => .{
1245512455 .tag = tag,
1245612456 .incoming_stack_alignment = .fromByteUnits(pl.incoming_stack_alignment orelse 0),
1245712457 .extra = @intFromEnum(pl.mode),
1245812458 },
12459 std.builtin.CallingConvention.ShInterruptOptions => .{
12459 std.lang.CallingConvention.ShInterruptOptions => .{
1246012460 .tag = tag,
1246112461 .incoming_stack_alignment = .fromByteUnits(pl.incoming_stack_alignment orelse 0),
1246212462 .extra = @intFromEnum(pl.save),
......@@ -12466,41 +12466,41 @@ const PackedCallingConvention = packed struct(u18) {
1246612466 };
1246712467 }
1246812468
12469 fn unpack(cc: PackedCallingConvention) std.builtin.CallingConvention {
12469 fn unpack(cc: PackedCallingConvention) std.lang.CallingConvention {
1247012470 return switch (cc.tag) {
1247112471 inline else => |tag| @unionInit(
12472 std.builtin.CallingConvention,
12472 std.lang.CallingConvention,
1247312473 @tagName(tag),
12474 switch (@FieldType(std.builtin.CallingConvention, @tagName(tag))) {
12474 switch (@FieldType(std.lang.CallingConvention, @tagName(tag))) {
1247512475 void => {},
12476 std.builtin.CallingConvention.CommonOptions => .{
12476 std.lang.CallingConvention.CommonOptions => .{
1247712477 .incoming_stack_alignment = cc.incoming_stack_alignment.toByteUnits(),
1247812478 },
12479 std.builtin.CallingConvention.X86RegparmOptions => .{
12479 std.lang.CallingConvention.X86RegparmOptions => .{
1248012480 .incoming_stack_alignment = cc.incoming_stack_alignment.toByteUnits(),
1248112481 .register_params = @intCast(cc.extra),
1248212482 },
12483 std.builtin.CallingConvention.ArcInterruptOptions => .{
12483 std.lang.CallingConvention.ArcInterruptOptions => .{
1248412484 .incoming_stack_alignment = cc.incoming_stack_alignment.toByteUnits(),
1248512485 .type = @enumFromInt(cc.extra),
1248612486 },
12487 std.builtin.CallingConvention.ArmInterruptOptions => .{
12487 std.lang.CallingConvention.ArmInterruptOptions => .{
1248812488 .incoming_stack_alignment = cc.incoming_stack_alignment.toByteUnits(),
1248912489 .type = @enumFromInt(cc.extra),
1249012490 },
12491 std.builtin.CallingConvention.MicroblazeInterruptOptions => .{
12491 std.lang.CallingConvention.MicroblazeInterruptOptions => .{
1249212492 .incoming_stack_alignment = cc.incoming_stack_alignment.toByteUnits(),
1249312493 .type = @enumFromInt(cc.extra),
1249412494 },
12495 std.builtin.CallingConvention.MipsInterruptOptions => .{
12495 std.lang.CallingConvention.MipsInterruptOptions => .{
1249612496 .incoming_stack_alignment = cc.incoming_stack_alignment.toByteUnits(),
1249712497 .mode = @enumFromInt(cc.extra),
1249812498 },
12499 std.builtin.CallingConvention.RiscvInterruptOptions => .{
12499 std.lang.CallingConvention.RiscvInterruptOptions => .{
1250012500 .incoming_stack_alignment = cc.incoming_stack_alignment.toByteUnits(),
1250112501 .mode = @enumFromInt(cc.extra),
1250212502 },
12503 std.builtin.CallingConvention.ShInterruptOptions => .{
12503 std.lang.CallingConvention.ShInterruptOptions => .{
1250412504 .incoming_stack_alignment = cc.incoming_stack_alignment.toByteUnits(),
1250512505 .save = @enumFromInt(cc.extra),
1250612506 },
src/Package/Module.zig+7-7
......@@ -15,8 +15,8 @@ fully_qualified_name: []const u8,
1515deps: Deps = .{},
1616
1717resolved_target: ResolvedTarget,
18optimize_mode: std.builtin.OptimizeMode,
19code_model: std.builtin.CodeModel,
18optimize_mode: std.lang.OptimizeMode,
19code_model: std.lang.CodeModel,
2020single_threaded: bool,
2121error_tracing: bool,
2222valgrind: bool,
......@@ -29,7 +29,7 @@ red_zone: bool,
2929sanitize_c: std.zig.SanitizeC,
3030sanitize_thread: bool,
3131fuzz: bool,
32unwind_tables: std.builtin.UnwindTables,
32unwind_tables: std.lang.UnwindTables,
3333cc_argv: []const []const u8,
3434/// (SPIR-V) whether to generate a structured control flow graph or not
3535structured_cfg: bool,
......@@ -61,8 +61,8 @@ pub const CreateOptions = struct {
6161 pub const Inherited = struct {
6262 /// If this is null then `parent` must be non-null.
6363 resolved_target: ?ResolvedTarget = null,
64 optimize_mode: ?std.builtin.OptimizeMode = null,
65 code_model: ?std.builtin.CodeModel = null,
64 optimize_mode: ?std.lang.OptimizeMode = null,
65 code_model: ?std.lang.CodeModel = null,
6666 single_threaded: ?bool = null,
6767 error_tracing: ?bool = null,
6868 valgrind: ?bool = null,
......@@ -75,7 +75,7 @@ pub const CreateOptions = struct {
7575 /// other number means stack protection with that buffer size.
7676 stack_protector: ?u32 = null,
7777 red_zone: ?bool = null,
78 unwind_tables: ?std.builtin.UnwindTables = null,
78 unwind_tables: ?std.lang.UnwindTables = null,
7979 sanitize_c: ?std.zig.SanitizeC = null,
8080 sanitize_thread: ?bool = null,
8181 fuzz: ?bool = null,
......@@ -238,7 +238,7 @@ pub fn create(arena: Allocator, options: CreateOptions) !*Package.Module {
238238 break :b false;
239239 };
240240
241 const code_model: std.builtin.CodeModel = b: {
241 const code_model: std.lang.CodeModel = b: {
242242 if (options.inherited.code_model) |x| break :b x;
243243 if (options.parent) |p| break :b p.code_model;
244244 break :b .default;
src/Sema.zig+111-111
......@@ -135,7 +135,7 @@ allow_memoize: bool = true,
135135
136136/// The `BranchHint` for the current branch of runtime control flow.
137137/// This state is on `Sema` so that `cold` hints can be propagated up through blocks with less special handling.
138branch_hint: ?std.builtin.BranchHint = null,
138branch_hint: ?std.lang.BranchHint = null,
139139
140140const RuntimeIndex = enum(u32) {
141141 zero = 0,
......@@ -383,7 +383,7 @@ pub const Block = struct {
383383 want_safety: ?bool = null,
384384
385385 /// What mode to generate float operations in, set by @setFloatMode
386 float_mode: std.builtin.FloatMode = .strict,
386 float_mode: std.lang.FloatMode = .strict,
387387
388388 /// If not `null`, this boolean is set when a `dbg_var_ptr`, `dbg_var_val`, or `dbg_arg_inline`.
389389 /// instruction is emitted. It signals that the innermost lexically
......@@ -759,7 +759,7 @@ pub const Block = struct {
759759 });
760760 }
761761
762 fn addReduce(block: *Block, operand: Air.Inst.Ref, operation: std.builtin.ReduceOp) !Air.Inst.Ref {
762 fn addReduce(block: *Block, operand: Air.Inst.Ref, operation: std.lang.ReduceOp) !Air.Inst.Ref {
763763 const sema = block.sema;
764764 const zcu = sema.pt.zcu;
765765 const allow_optimized = switch (sema.typeOf(operand).childType(zcu).zigTypeTag(zcu)) {
......@@ -1023,7 +1023,7 @@ pub fn deinit(sema: *Sema) void {
10231023/// control flow happens here, Sema will convert it to runtime control flow by introducing post-hoc
10241024/// blocks where necessary.
10251025/// Returns the branch hint for this branch.
1026fn analyzeBodyRuntimeBreak(sema: *Sema, block: *Block, body: []const Zir.Inst.Index) !std.builtin.BranchHint {
1026fn analyzeBodyRuntimeBreak(sema: *Sema, block: *Block, body: []const Zir.Inst.Index) !std.lang.BranchHint {
10271027 const parent_hint = sema.branch_hint;
10281028 defer sema.branch_hint = parent_hint;
10291029 sema.branch_hint = null;
......@@ -2804,8 +2804,8 @@ fn analyzeValueAsCallconv(
28042804 block: *Block,
28052805 src: LazySrcLoc,
28062806 val: Value,
2807) !std.builtin.CallingConvention {
2808 return interpretStdLangType(sema, block, src, val, std.builtin.CallingConvention);
2807) !std.lang.CallingConvention {
2808 return interpretStdLangType(sema, block, src, val, std.lang.CallingConvention);
28092809}
28102810
28112811fn interpretStdLangType(
......@@ -6147,7 +6147,7 @@ fn zirCall(
61476147 const extra = sema.code.extraData(ExtraType, inst_data.payload_index);
61486148 const args_len = extra.data.flags.args_len;
61496149
6150 const modifier: std.builtin.CallModifier = @enumFromInt(extra.data.flags.packed_modifier);
6150 const modifier: std.lang.CallModifier = @enumFromInt(extra.data.flags.packed_modifier);
61516151 const ensure_result_used = extra.data.flags.ensure_result_used;
61526152 const pop_error_return_trace = extra.data.flags.pop_error_return_trace;
61536153
......@@ -6322,7 +6322,7 @@ fn callBuiltin(
63226322 block: *Block,
63236323 call_src: LazySrcLoc,
63246324 builtin_fn: Air.Inst.Ref,
6325 modifier: std.builtin.CallModifier,
6325 modifier: std.lang.CallModifier,
63266326 args: []const Air.Inst.Ref,
63276327 operation: CallOperation,
63286328) !void {
......@@ -6543,7 +6543,7 @@ fn analyzeCall(
65436543 func_ty: Type,
65446544 func_src: LazySrcLoc,
65456545 call_src: LazySrcLoc,
6546 modifier: std.builtin.CallModifier,
6546 modifier: std.lang.CallModifier,
65476547 ensure_result_used: bool,
65486548 args_info: CallArgsInfo,
65496549 call_dbg_node: ?Zir.Inst.Index,
......@@ -8367,7 +8367,7 @@ fn zirFunc(
83678367 // If this instruction has a body, then it's a function declaration, and we decide
83688368 // the callconv based on whether it is exported. Otherwise, the callconv defaults
83698369 // to `.auto`.
8370 const cc: std.builtin.CallingConvention = if (has_body) cc: {
8370 const cc: std.lang.CallingConvention = if (has_body) cc: {
83718371 const func_decl_nav = sema.owner.unwrap().nav_val;
83728372 const fn_is_exported = exported: {
83738373 const decl_inst = ip.getNav(func_decl_nav).analysis.?.zir_index.resolve(ip) orelse return error.AnalysisFail;
......@@ -8509,7 +8509,7 @@ pub fn handleExternLibName(
85098509/// These are calling conventions that are confirmed to work with variadic functions.
85108510/// Any calling conventions not included here are either not yet verified to work with variadic
85118511/// functions or there are no more other calling conventions that support variadic functions.
8512const calling_conventions_supporting_var_args = [_]std.builtin.CallingConvention.Tag{
8512const calling_conventions_supporting_var_args = [_]std.lang.CallingConvention.Tag{
85138513 .x86_16_cdecl,
85148514 .x86_64_sysv,
85158515 .x86_64_x32,
......@@ -8570,12 +8570,12 @@ const calling_conventions_supporting_var_args = [_]std.builtin.CallingConvention
85708570 .xtensa_call0,
85718571 .xtensa_windowed,
85728572};
8573fn callConvSupportsVarArgs(cc: std.builtin.CallingConvention.Tag) bool {
8573fn callConvSupportsVarArgs(cc: std.lang.CallingConvention.Tag) bool {
85748574 return for (calling_conventions_supporting_var_args) |supported_cc| {
85758575 if (cc == supported_cc) return true;
85768576 } else false;
85778577}
8578fn checkCallConvSupportsVarArgs(sema: *Sema, block: *Block, src: LazySrcLoc, cc: std.builtin.CallingConvention.Tag) CompileError!void {
8578fn checkCallConvSupportsVarArgs(sema: *Sema, block: *Block, src: LazySrcLoc, cc: std.lang.CallingConvention.Tag) CompileError!void {
85798579 const CallingConventionsSupportingVarArgsList = struct {
85808580 arch: std.Target.Cpu.Arch,
85818581 pub fn format(ctx: @This(), w: *std.Io.Writer) std.Io.Writer.Error!void {
......@@ -8612,7 +8612,7 @@ fn checkParamType(
86128612 param_is_comptime: bool,
86138613 param_is_noalias: bool,
86148614 param_src: LazySrcLoc,
8615 cc: std.builtin.CallingConvention,
8615 cc: std.lang.CallingConvention,
86168616) CompileError!void {
86178617 const pt = sema.pt;
86188618 const zcu = pt.zcu;
......@@ -8668,7 +8668,7 @@ fn checkReturnTypeAndCallConv(
86688668 block: *Block,
86698669 bare_ret_ty: Type,
86708670 ret_ty_src: LazySrcLoc,
8671 @"callconv": std.builtin.CallingConvention,
8671 @"callconv": std.lang.CallingConvention,
86728672 callconv_src: LazySrcLoc,
86738673 /// non-`null` only if the function is varargs.
86748674 opt_varargs_src: ?LazySrcLoc,
......@@ -8772,7 +8772,7 @@ fn checkReturnTypeAndCallConv(
87728772fn validateResolvedFuncType(
87738773 sema: *Sema,
87748774 block: *Block,
8775 @"callconv": std.builtin.CallingConvention,
8775 @"callconv": std.lang.CallingConvention,
87768776 param_types: []const InternPool.Index,
87778777 ret_ty: Type,
87788778 src: LazySrcLoc,
......@@ -8823,7 +8823,7 @@ fn validateResolvedFuncType(
88238823 }
88248824}
88258825
8826fn callConvIsCallable(cc: std.builtin.CallingConvention.Tag) bool {
8826fn callConvIsCallable(cc: std.lang.CallingConvention.Tag) bool {
88278827 return switch (cc) {
88288828 .naked,
88298829
......@@ -8898,7 +8898,7 @@ fn funcCommon(
88988898 block: *Block,
88998899 src_node_offset: std.zig.Ast.Node.Offset,
89008900 func_inst: Zir.Inst.Index,
8901 cc: std.builtin.CallingConvention,
8901 cc: std.lang.CallingConvention,
89028902 /// this might be Type.generic_poison
89038903 bare_return_type: Type,
89048904 var_args: bool,
......@@ -9896,7 +9896,7 @@ fn zirSwitchBlockErrUnion(sema: *Sema, block: *Block, inst: Zir.Inst.Index) Comp
98969896 else
98979897 try sema.analyzeIsNonErr(block, operand_src, eu_maybe_ptr);
98989898
9899 const non_err_hint: std.builtin.BranchHint = hint: {
9899 const non_err_hint: std.lang.BranchHint = hint: {
99009900 // don't analyze the non-error body if it's unreachable
99019901 if (non_err_cond == .bool_false) {
99029902 break :hint undefined;
......@@ -10488,14 +10488,14 @@ fn finishSwitchBr(
1048810488 const bags_required = std.math.divCeil(u32, hints.count + additional_count, hints_per_bag) catch unreachable;
1048910489 return hints.bags.ensureUnusedCapacity(gpa_inner, bags_required);
1049010490 }
10491 fn appendAssumeCapacity(hints: *@This(), hint: std.builtin.BranchHint) void {
10491 fn appendAssumeCapacity(hints: *@This(), hint: std.lang.BranchHint) void {
1049210492 const idx_in_bag = hints.count % hints_per_bag;
1049310493 var bag: u32 = if (idx_in_bag > 0) hints.bags.pop().? else 0;
10494 bag |= @as(u32, @intFromEnum(hint)) << @intCast(@bitSizeOf(std.builtin.BranchHint) * idx_in_bag);
10494 bag |= @as(u32, @intFromEnum(hint)) << @intCast(@bitSizeOf(std.lang.BranchHint) * idx_in_bag);
1049510495 hints.count += 1;
1049610496 return hints.bags.appendAssumeCapacity(bag);
1049710497 }
10498 fn append(hints: *@This(), gpa_inner: Allocator, hint: std.builtin.BranchHint) Allocator.Error!void {
10498 fn append(hints: *@This(), gpa_inner: Allocator, hint: std.lang.BranchHint) Allocator.Error!void {
1049910499 try hints.ensureUnusedCapacity(gpa_inner, 1);
1050010500 return hints.appendAssumeCapacity(hint);
1050110501 }
......@@ -10574,7 +10574,7 @@ fn finishSwitchBr(
1057410574 }
1057510575 emit_bb = true;
1057610576
10577 const prong_hint: std.builtin.BranchHint = hint: {
10577 const prong_hint: std.lang.BranchHint = hint: {
1057810578 if (analyze_body) break :hint try sema.analyzeSwitchProng(
1057910579 &case_block,
1058010580 operand,
......@@ -10717,7 +10717,7 @@ fn finishSwitchBr(
1071710717 case_block.instructions.clearRetainingCapacity();
1071810718 case_block.error_return_trace_index = child_block.error_return_trace_index;
1071910719
10720 const prong_hint: std.builtin.BranchHint = hint: {
10720 const prong_hint: std.lang.BranchHint = hint: {
1072110721 if (any_analyze_body) break :hint try sema.analyzeSwitchProng(
1072210722 &case_block,
1072310723 operand,
......@@ -10804,7 +10804,7 @@ fn finishSwitchBr(
1080410804 if (emit_bb) try sema.emitBackwardBranch(block, else_prong_src);
1080510805 emit_bb = true;
1080610806
10807 const prong_hint: std.builtin.BranchHint = hint: {
10807 const prong_hint: std.lang.BranchHint = hint: {
1080810808 if (analyze_body) break :hint try sema.analyzeSwitchProng(
1080910809 &case_block,
1081010810 operand,
......@@ -10864,7 +10864,7 @@ fn finishSwitchBr(
1086410864
1086510865 cases_len += 1;
1086610866
10867 const prong_hint: std.builtin.BranchHint = hint: {
10867 const prong_hint: std.lang.BranchHint = hint: {
1086810868 if (!else_case.is_inline) break :hint try sema.analyzeSwitchProng(
1086910869 &case_block,
1087010870 operand,
......@@ -11937,7 +11937,7 @@ fn analyzeSwitchProng(
1193711937 else_err_ty: ?Type,
1193811938 switch_inst: Zir.Inst.Index,
1193911939 zir_switch: *const Zir.UnwrappedSwitchBlock,
11940) CompileError!std.builtin.BranchHint {
11940) CompileError!std.lang.BranchHint {
1194111941 const pt = sema.pt;
1194211942 const zcu = pt.zcu;
1194311943
......@@ -12328,7 +12328,7 @@ fn analyzeSwitchPayloadCapture(
1232812328
1232912329 {
1233012330 // All branch hints are `.none`, so just add zero elems.
12331 comptime assert(@intFromEnum(std.builtin.BranchHint.none) == 0);
12331 comptime assert(@intFromEnum(std.lang.BranchHint.none) == 0);
1233212332 const need_elems = std.math.divCeil(usize, prong_count + 1, 10) catch unreachable;
1233312333 try cases_extra.appendNTimes(0, need_elems);
1233412334 }
......@@ -16088,7 +16088,7 @@ fn zirTypeInfo(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai
1608816088 };
1608916089 return Air.internedToRef((try pt.internUnion(.{
1609016090 .ty = type_info_ty.toIntern(),
16091 .tag = (try pt.enumValueFieldIndex(type_info_tag_ty, @intFromEnum(std.builtin.TypeId.@"fn"))).toIntern(),
16091 .tag = (try pt.enumValueFieldIndex(type_info_tag_ty, @intFromEnum(std.lang.TypeId.@"fn"))).toIntern(),
1609216092 .val = (try pt.aggregateValue(fn_info_ty, &field_values)).toIntern(),
1609316093 })));
1609416094 },
......@@ -16104,7 +16104,7 @@ fn zirTypeInfo(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai
1610416104 };
1610516105 return Air.internedToRef((try pt.internUnion(.{
1610616106 .ty = type_info_ty.toIntern(),
16107 .tag = (try pt.enumValueFieldIndex(type_info_tag_ty, @intFromEnum(std.builtin.TypeId.int))).toIntern(),
16107 .tag = (try pt.enumValueFieldIndex(type_info_tag_ty, @intFromEnum(std.lang.TypeId.int))).toIntern(),
1610816108 .val = (try pt.aggregateValue(int_info_ty, &field_values)).toIntern(),
1610916109 })));
1611016110 },
......@@ -16117,7 +16117,7 @@ fn zirTypeInfo(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai
1611716117 };
1611816118 return Air.internedToRef((try pt.internUnion(.{
1611916119 .ty = type_info_ty.toIntern(),
16120 .tag = (try pt.enumValueFieldIndex(type_info_tag_ty, @intFromEnum(std.builtin.TypeId.float))).toIntern(),
16120 .tag = (try pt.enumValueFieldIndex(type_info_tag_ty, @intFromEnum(std.lang.TypeId.float))).toIntern(),
1612116121 .val = (try pt.aggregateValue(float_info_ty, &field_vals)).toIntern(),
1612216122 })));
1612316123 },
......@@ -16162,7 +16162,7 @@ fn zirTypeInfo(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai
1616216162 };
1616316163 return Air.internedToRef((try pt.internUnion(.{
1616416164 .ty = type_info_ty.toIntern(),
16165 .tag = (try pt.enumValueFieldIndex(type_info_tag_ty, @intFromEnum(std.builtin.TypeId.pointer))).toIntern(),
16165 .tag = (try pt.enumValueFieldIndex(type_info_tag_ty, @intFromEnum(std.lang.TypeId.pointer))).toIntern(),
1616616166 .val = (try pt.aggregateValue(pointer_ty, &field_values)).toIntern(),
1616716167 })));
1616816168 },
......@@ -16180,7 +16180,7 @@ fn zirTypeInfo(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai
1618016180 };
1618116181 return Air.internedToRef((try pt.internUnion(.{
1618216182 .ty = type_info_ty.toIntern(),
16183 .tag = (try pt.enumValueFieldIndex(type_info_tag_ty, @intFromEnum(std.builtin.TypeId.array))).toIntern(),
16183 .tag = (try pt.enumValueFieldIndex(type_info_tag_ty, @intFromEnum(std.lang.TypeId.array))).toIntern(),
1618416184 .val = (try pt.aggregateValue(array_field_ty, &field_values)).toIntern(),
1618516185 })));
1618616186 },
......@@ -16196,7 +16196,7 @@ fn zirTypeInfo(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai
1619616196 };
1619716197 return Air.internedToRef((try pt.internUnion(.{
1619816198 .ty = type_info_ty.toIntern(),
16199 .tag = (try pt.enumValueFieldIndex(type_info_tag_ty, @intFromEnum(std.builtin.TypeId.vector))).toIntern(),
16199 .tag = (try pt.enumValueFieldIndex(type_info_tag_ty, @intFromEnum(std.lang.TypeId.vector))).toIntern(),
1620016200 .val = (try pt.aggregateValue(vector_field_ty, &field_values)).toIntern(),
1620116201 })));
1620216202 },
......@@ -16209,7 +16209,7 @@ fn zirTypeInfo(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai
1620916209 };
1621016210 return Air.internedToRef((try pt.internUnion(.{
1621116211 .ty = type_info_ty.toIntern(),
16212 .tag = (try pt.enumValueFieldIndex(type_info_tag_ty, @intFromEnum(std.builtin.TypeId.optional))).toIntern(),
16212 .tag = (try pt.enumValueFieldIndex(type_info_tag_ty, @intFromEnum(std.lang.TypeId.optional))).toIntern(),
1621316213 .val = (try pt.aggregateValue(optional_field_ty, &field_values)).toIntern(),
1621416214 })));
1621516215 },
......@@ -16300,7 +16300,7 @@ fn zirTypeInfo(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai
1630016300 // Construct Type{ .error_set = errors_val }
1630116301 return Air.internedToRef((try pt.internUnion(.{
1630216302 .ty = type_info_ty.toIntern(),
16303 .tag = (try pt.enumValueFieldIndex(type_info_tag_ty, @intFromEnum(std.builtin.TypeId.error_set))).toIntern(),
16303 .tag = (try pt.enumValueFieldIndex(type_info_tag_ty, @intFromEnum(std.lang.TypeId.error_set))).toIntern(),
1630416304 .val = errors_val,
1630516305 })));
1630616306 },
......@@ -16315,7 +16315,7 @@ fn zirTypeInfo(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai
1631516315 };
1631616316 return Air.internedToRef((try pt.internUnion(.{
1631716317 .ty = type_info_ty.toIntern(),
16318 .tag = (try pt.enumValueFieldIndex(type_info_tag_ty, @intFromEnum(std.builtin.TypeId.error_union))).toIntern(),
16318 .tag = (try pt.enumValueFieldIndex(type_info_tag_ty, @intFromEnum(std.lang.TypeId.error_union))).toIntern(),
1631916319 .val = (try pt.aggregateValue(error_union_field_ty, &field_values)).toIntern(),
1632016320 })));
1632116321 },
......@@ -16418,7 +16418,7 @@ fn zirTypeInfo(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai
1641816418 };
1641916419 return Air.internedToRef((try pt.internUnion(.{
1642016420 .ty = type_info_ty.toIntern(),
16421 .tag = (try pt.enumValueFieldIndex(type_info_tag_ty, @intFromEnum(std.builtin.TypeId.@"enum"))).toIntern(),
16421 .tag = (try pt.enumValueFieldIndex(type_info_tag_ty, @intFromEnum(std.lang.TypeId.@"enum"))).toIntern(),
1642216422 .val = (try pt.aggregateValue(type_enum_ty, &field_values)).toIntern(),
1642316423 })));
1642416424 },
......@@ -16539,7 +16539,7 @@ fn zirTypeInfo(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai
1653916539 };
1654016540 return Air.internedToRef((try pt.internUnion(.{
1654116541 .ty = type_info_ty.toIntern(),
16542 .tag = (try pt.enumValueFieldIndex(type_info_tag_ty, @intFromEnum(std.builtin.TypeId.@"union"))).toIntern(),
16542 .tag = (try pt.enumValueFieldIndex(type_info_tag_ty, @intFromEnum(std.lang.TypeId.@"union"))).toIntern(),
1654316543 .val = (try pt.aggregateValue(type_union_ty, &field_values)).toIntern(),
1654416544 })));
1654516545 },
......@@ -16731,7 +16731,7 @@ fn zirTypeInfo(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai
1673116731 };
1673216732 return Air.internedToRef((try pt.internUnion(.{
1673316733 .ty = type_info_ty.toIntern(),
16734 .tag = (try pt.enumValueFieldIndex(type_info_tag_ty, @intFromEnum(std.builtin.TypeId.@"struct"))).toIntern(),
16734 .tag = (try pt.enumValueFieldIndex(type_info_tag_ty, @intFromEnum(std.lang.TypeId.@"struct"))).toIntern(),
1673516735 .val = (try pt.aggregateValue(type_struct_ty, &field_values)).toIntern(),
1673616736 })));
1673716737 },
......@@ -16746,7 +16746,7 @@ fn zirTypeInfo(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai
1674616746 };
1674716747 return Air.internedToRef((try pt.internUnion(.{
1674816748 .ty = type_info_ty.toIntern(),
16749 .tag = (try pt.enumValueFieldIndex(type_info_tag_ty, @intFromEnum(std.builtin.TypeId.@"opaque"))).toIntern(),
16749 .tag = (try pt.enumValueFieldIndex(type_info_tag_ty, @intFromEnum(std.lang.TypeId.@"opaque"))).toIntern(),
1675016750 .val = (try pt.aggregateValue(type_opaque_ty, &field_values)).toIntern(),
1675116751 })));
1675216752 },
......@@ -17323,7 +17323,7 @@ fn zirCondbr(
1732317323 // Reset, this may have been updated by the then block analysis
1732417324 sub_block.error_return_trace_index = parent_block.error_return_trace_index;
1732517325
17326 const false_hint: std.builtin.BranchHint = if (err_cond != null and
17326 const false_hint: std.lang.BranchHint = if (err_cond != null and
1732717327 try sema.maybeErrorUnwrap(&sub_block, else_body, err_cond.?, cond_src, false))
1732817328 h: {
1732917329 // nothing to do here. weight against error branch
......@@ -18040,7 +18040,7 @@ fn zirPtrType(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air
1804018040 break :blk try sema.validateAlign(block, align_src, align_bytes);
1804118041 } else .none;
1804218042
18043 const address_space: std.builtin.AddressSpace = if (inst_data.flags.has_addrspace) blk: {
18043 const address_space: std.lang.AddressSpace = if (inst_data.flags.has_addrspace) blk: {
1804418044 const ref: Zir.Inst.Ref = @enumFromInt(sema.code.extra[extra_i]);
1804518045 extra_i += 1;
1804618046 break :blk try sema.resolveAddressSpace(block, addrspace_src, ref, .pointer);
......@@ -19605,12 +19605,12 @@ fn zirReifyPointer(
1960519605 const size_uncoerced = sema.resolveInst(extra.size);
1960619606 const size_coerced = try sema.coerce(block, size_ty, size_uncoerced, size_src);
1960719607 const size_val = try sema.resolveConstDefinedValue(block, size_src, size_coerced, .{ .simple = .pointer_size });
19608 const size = try sema.interpretStdLangType(block, size_src, size_val, std.builtin.Type.Pointer.Size);
19608 const size = try sema.interpretStdLangType(block, size_src, size_val, std.lang.Type.Pointer.Size);
1960919609
1961019610 const attrs_uncoerced = sema.resolveInst(extra.attrs);
1961119611 const attrs_coerced = try sema.coerce(block, attrs_ty, attrs_uncoerced, attrs_src);
1961219612 const attrs_val = try sema.resolveConstDefinedValue(block, attrs_src, attrs_coerced, .{ .simple = .pointer_attrs });
19613 const attrs = try sema.interpretStdLangType(block, attrs_src, attrs_val, std.builtin.Type.Pointer.Attributes);
19613 const attrs = try sema.interpretStdLangType(block, attrs_src, attrs_val, std.lang.Type.Pointer.Attributes);
1961419614
1961519615 const @"align": Alignment = if (attrs.@"align") |bytes| a: {
1961619616 break :a try sema.validateAlign(block, attrs_src, bytes);
......@@ -19711,7 +19711,7 @@ fn zirReifyFn(
1971119711 const fn_attrs_uncoerced = sema.resolveInst(extra.fn_attrs);
1971219712 const fn_attrs_coerced = try sema.coerce(block, fn_attrs_ty, fn_attrs_uncoerced, fn_attrs_src);
1971319713 const fn_attrs_val = try sema.resolveConstDefinedValue(block, fn_attrs_src, fn_attrs_coerced, .{ .simple = .fn_attrs });
19714 const fn_attrs = try sema.interpretStdLangType(block, fn_attrs_src, fn_attrs_val, std.builtin.Type.Fn.Attributes);
19714 const fn_attrs = try sema.interpretStdLangType(block, fn_attrs_src, fn_attrs_val, std.lang.Type.Fn.Attributes);
1971519715
1971619716 var noalias_bits: u32 = 0;
1971719717 const param_types_ip = try sema.arena.alloc(InternPool.Index, @intCast(params_len));
......@@ -19721,7 +19721,7 @@ fn zirReifyFn(
1972119721 block,
1972219722 param_attrs_src,
1972319723 try param_attrs_arr.elemValue(pt, param_idx),
19724 std.builtin.Type.Fn.Param.Attributes,
19724 std.lang.Type.Fn.Param.Attributes,
1972519725 );
1972619726 try sema.checkParamType(
1972719727 block,
......@@ -19831,7 +19831,7 @@ fn zirReifyStruct(
1983119831 const layout_uncoerced = sema.resolveInst(extra.layout);
1983219832 const layout_coerced = try sema.coerce(block, container_layout_ty, layout_uncoerced, layout_src);
1983319833 const layout_val = try sema.resolveConstDefinedValue(block, layout_src, layout_coerced, .{ .simple = .struct_layout });
19834 const layout = try sema.interpretStdLangType(block, layout_src, layout_val, std.builtin.Type.ContainerLayout);
19834 const layout = try sema.interpretStdLangType(block, layout_src, layout_val, std.lang.Type.ContainerLayout);
1983519835
1983619836 const backing_int_ty_uncoerced = sema.resolveInst(extra.backing_ty);
1983719837 const backing_int_ty_coerced = try sema.coerce(block, .optional_type, backing_int_ty_uncoerced, backing_ty_src);
......@@ -19912,15 +19912,15 @@ fn zirReifyStruct(
1991219912 const field_name = try sema.sliceToIpString(block, field_names_src, field_name_val, .{ .simple = .struct_field_names });
1991319913
1991419914 const field_attr_comptime = try field_attrs_val.fieldValue(pt, std.meta.fieldIndex(
19915 std.builtin.Type.StructField.Attributes,
19915 std.lang.Type.StructField.Attributes,
1991619916 "comptime",
1991719917 ).?);
1991819918 const field_attr_align = try field_attrs_val.fieldValue(pt, std.meta.fieldIndex(
19919 std.builtin.Type.StructField.Attributes,
19919 std.lang.Type.StructField.Attributes,
1992019920 "align",
1992119921 ).?);
1992219922 const field_attr_default_value_ptr = try field_attrs_val.fieldValue(pt, std.meta.fieldIndex(
19923 std.builtin.Type.StructField.Attributes,
19923 std.lang.Type.StructField.Attributes,
1992419924 "default_value_ptr",
1992519925 ).?);
1992619926
......@@ -19997,15 +19997,15 @@ fn zirReifyStruct(
1999719997 wip.field_types.get(ip)[field_idx] = field_ty.toIntern();
1999819998
1999919999 const field_attr_comptime = try field_attrs_val.fieldValue(pt, std.meta.fieldIndex(
20000 std.builtin.Type.StructField.Attributes,
20000 std.lang.Type.StructField.Attributes,
2000120001 "comptime",
2000220002 ).?);
2000320003 const field_attr_align = try field_attrs_val.fieldValue(pt, std.meta.fieldIndex(
20004 std.builtin.Type.StructField.Attributes,
20004 std.lang.Type.StructField.Attributes,
2000520005 "align",
2000620006 ).?);
2000720007 const field_attr_default_value_ptr = try field_attrs_val.fieldValue(pt, std.meta.fieldIndex(
20008 std.builtin.Type.StructField.Attributes,
20008 std.lang.Type.StructField.Attributes,
2000920009 "default_value_ptr",
2001020010 ).?);
2001120011
......@@ -20111,7 +20111,7 @@ fn zirReifyUnion(
2011120111 const layout_uncoerced = sema.resolveInst(extra.layout);
2011220112 const layout_coerced = try sema.coerce(block, container_layout_ty, layout_uncoerced, layout_src);
2011320113 const layout_val = try sema.resolveConstDefinedValue(block, layout_src, layout_coerced, .{ .simple = .union_layout });
20114 const layout = try sema.interpretStdLangType(block, layout_src, layout_val, std.builtin.Type.ContainerLayout);
20114 const layout = try sema.interpretStdLangType(block, layout_src, layout_val, std.lang.Type.ContainerLayout);
2011520115
2011620116 const arg_ty_uncoerced = sema.resolveInst(extra.arg_ty);
2011720117 const arg_ty_coerced = try sema.coerce(block, .optional_type, arg_ty_uncoerced, arg_ty_src);
......@@ -20195,7 +20195,7 @@ fn zirReifyUnion(
2019520195 block,
2019620196 field_attrs_src,
2019720197 try field_attrs_arr.elemValue(pt, field_idx),
20198 std.builtin.Type.UnionField.Attributes,
20198 std.lang.Type.UnionField.Attributes,
2019920199 );
2020020200 if (field_attrs.@"align") |bytes| {
2020120201 if (layout == .@"packed") {
......@@ -20244,7 +20244,7 @@ fn zirReifyUnion(
2024420244 block,
2024520245 .unneeded,
2024620246 try field_attrs_arr.elemValue(pt, field_idx),
20247 std.builtin.Type.UnionField.Attributes,
20247 std.lang.Type.UnionField.Attributes,
2024820248 );
2024920249 if (field_attrs.@"align") |bytes| {
2025020250 // No source location; first loop checked this is valid.
......@@ -20329,7 +20329,7 @@ fn zirReifyEnum(
2032920329 const mode_uncoerced = sema.resolveInst(extra.mode);
2033020330 const mode_coerced = try sema.coerce(block, enum_mode_ty, mode_uncoerced, mode_src);
2033120331 const mode_val = try sema.resolveConstDefinedValue(block, mode_src, mode_coerced, .{ .simple = .type });
20332 const nonexhaustive = switch (try sema.interpretStdLangType(block, mode_src, mode_val, std.builtin.Type.Enum.Mode)) {
20332 const nonexhaustive = switch (try sema.interpretStdLangType(block, mode_src, mode_val, std.lang.Type.Enum.Mode)) {
2033320333 .exhaustive => false,
2033420334 .nonexhaustive => true,
2033520335 };
......@@ -21962,9 +21962,9 @@ fn checkArithmeticOp(
2196221962 sema: *Sema,
2196321963 block: *Block,
2196421964 src: LazySrcLoc,
21965 scalar_tag: std.builtin.TypeId,
21966 lhs_zig_ty_tag: std.builtin.TypeId,
21967 rhs_zig_ty_tag: std.builtin.TypeId,
21965 scalar_tag: std.lang.TypeId,
21966 lhs_zig_ty_tag: std.lang.TypeId,
21967 rhs_zig_ty_tag: std.lang.TypeId,
2196821968 zir_tag: Zir.Inst.Tag,
2196921969) CompileError!void {
2197021970 const is_int = scalar_tag == .int or scalar_tag == .comptime_int;
......@@ -22387,7 +22387,7 @@ fn resolveExportOptions(
2238722387
2238822388 const linkage_operand = try sema.fieldVal(block, src, options, try ip.getOrPutString(gpa, io, pt.tid, "linkage", .no_embedded_nulls), linkage_src);
2238922389 const linkage_val = try sema.resolveConstDefinedValue(block, linkage_src, linkage_operand, .{ .simple = .export_options });
22390 const linkage = try sema.interpretStdLangType(block, linkage_src, linkage_val, std.builtin.GlobalLinkage);
22390 const linkage = try sema.interpretStdLangType(block, linkage_src, linkage_val, std.lang.GlobalLinkage);
2239122391
2239222392 const section_operand = try sema.fieldVal(block, src, options, try ip.getOrPutString(gpa, io, pt.tid, "section", .no_embedded_nulls), section_src);
2239322393 const section_opt_val = try sema.resolveConstDefinedValue(block, section_src, section_operand, .{ .simple = .export_options });
......@@ -22398,7 +22398,7 @@ fn resolveExportOptions(
2239822398
2239922399 const visibility_operand = try sema.fieldVal(block, src, options, try ip.getOrPutString(gpa, io, pt.tid, "visibility", .no_embedded_nulls), visibility_src);
2240022400 const visibility_val = try sema.resolveConstDefinedValue(block, visibility_src, visibility_operand, .{ .simple = .export_options });
22401 const visibility = try sema.interpretStdLangType(block, visibility_src, visibility_val, std.builtin.SymbolVisibility);
22401 const visibility = try sema.interpretStdLangType(block, visibility_src, visibility_val, std.lang.SymbolVisibility);
2240222402
2240322403 if (name.len < 1) {
2240422404 return sema.fail(block, name_src, "exported symbol name cannot be empty", .{});
......@@ -22425,12 +22425,12 @@ fn resolveStdLangEnum(
2242522425 zir_ref: Zir.Inst.Ref,
2242622426 comptime name: Zcu.StdLangDecl,
2242722427 reason: ComptimeReason,
22428) CompileError!@field(std.builtin, @tagName(name)) {
22428) CompileError!@field(std.lang, @tagName(name)) {
2242922429 const ty = try sema.getStdLangType(src, name);
2243022430 const air_ref = sema.resolveInst(zir_ref);
2243122431 const coerced = try sema.coerce(block, ty, air_ref, src);
2243222432 const val = try sema.resolveConstDefinedValue(block, src, coerced, reason);
22433 return sema.interpretStdLangType(block, src, val, @field(std.builtin, @tagName(name)));
22433 return sema.interpretStdLangType(block, src, val, @field(std.lang, @tagName(name)));
2243422434}
2243522435
2243622436fn resolveAtomicOrder(
......@@ -22439,7 +22439,7 @@ fn resolveAtomicOrder(
2243922439 src: LazySrcLoc,
2244022440 zir_ref: Zir.Inst.Ref,
2244122441 reason: ComptimeReason,
22442) CompileError!std.builtin.AtomicOrder {
22442) CompileError!std.lang.AtomicOrder {
2244322443 return sema.resolveStdLangEnum(block, src, zir_ref, .AtomicOrder, reason);
2244422444}
2244522445
......@@ -22448,7 +22448,7 @@ fn resolveAtomicRmwOp(
2244822448 block: *Block,
2244922449 src: LazySrcLoc,
2245022450 zir_ref: Zir.Inst.Ref,
22451) CompileError!std.builtin.AtomicRmwOp {
22451) CompileError!std.lang.AtomicRmwOp {
2245222452 return sema.resolveStdLangEnum(block, src, zir_ref, .AtomicRmwOp, .{ .simple = .operand_atomicRmw_operation });
2245322453}
2245422454
......@@ -22490,10 +22490,10 @@ fn zirCmpxchg(
2249022490 const success_order = try sema.resolveAtomicOrder(block, success_order_src, extra.success_order, .{ .simple = .atomic_order });
2249122491 const failure_order = try sema.resolveAtomicOrder(block, failure_order_src, extra.failure_order, .{ .simple = .atomic_order });
2249222492
22493 if (@intFromEnum(success_order) < @intFromEnum(std.builtin.AtomicOrder.monotonic)) {
22493 if (@intFromEnum(success_order) < @intFromEnum(std.lang.AtomicOrder.monotonic)) {
2249422494 return sema.fail(block, success_order_src, "success atomic ordering must be monotonic or stricter", .{});
2249522495 }
22496 if (@intFromEnum(failure_order) < @intFromEnum(std.builtin.AtomicOrder.monotonic)) {
22496 if (@intFromEnum(failure_order) < @intFromEnum(std.lang.AtomicOrder.monotonic)) {
2249722497 return sema.fail(block, failure_order_src, "failure atomic ordering must be monotonic or stricter", .{});
2249822498 }
2249922499 if (@intFromEnum(failure_order) > @intFromEnum(success_order)) {
......@@ -23200,7 +23200,7 @@ fn zirBuiltinCall(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError
2320023200 const air_ref = sema.resolveInst(extra.modifier);
2320123201 const modifier_ref = try sema.coerce(block, modifier_ty, air_ref, modifier_src);
2320223202 const modifier_val = try sema.resolveConstDefinedValue(block, modifier_src, modifier_ref, .{ .simple = .call_modifier });
23203 var modifier = try sema.interpretStdLangType(block, modifier_src, modifier_val, std.builtin.CallModifier);
23203 var modifier = try sema.interpretStdLangType(block, modifier_src, modifier_val, std.lang.CallModifier);
2320423204 switch (modifier) {
2320523205 // These can be upgraded to comptime or nosuspend calls.
2320623206 .auto, .never_tail, .no_suspend => {
......@@ -24250,7 +24250,7 @@ fn zirFuncFancy(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!A
2425024250
2425124251 var extra_index: usize = extra.end;
2425224252
24253 const cc: std.builtin.CallingConvention = if (extra.data.bits.has_cc_body) blk: {
24253 const cc: std.lang.CallingConvention = if (extra.data.bits.has_cc_body) blk: {
2425424254 const body_len = sema.code.extra[extra_index];
2425524255 extra_index += 1;
2425624256 const body = sema.code.bodySlice(extra_index, body_len);
......@@ -24398,7 +24398,7 @@ fn resolvePrefetchOptions(
2439824398 block: *Block,
2439924399 src: LazySrcLoc,
2440024400 zir_ref: Zir.Inst.Ref,
24401) CompileError!std.builtin.PrefetchOptions {
24401) CompileError!std.lang.PrefetchOptions {
2440224402 const pt = sema.pt;
2440324403 const zcu = pt.zcu;
2440424404 const comp = zcu.comp;
......@@ -24422,10 +24422,10 @@ fn resolvePrefetchOptions(
2442224422 const cache = try sema.fieldVal(block, src, options, try ip.getOrPutString(gpa, io, pt.tid, "cache", .no_embedded_nulls), cache_src);
2442324423 const cache_val = try sema.resolveConstDefinedValue(block, cache_src, cache, .{ .simple = .prefetch_options });
2442424424
24425 return std.builtin.PrefetchOptions{
24426 .rw = try sema.interpretStdLangType(block, rw_src, rw_val, std.builtin.PrefetchOptions.Rw),
24425 return std.lang.PrefetchOptions{
24426 .rw = try sema.interpretStdLangType(block, rw_src, rw_val, std.lang.PrefetchOptions.Rw),
2442724427 .locality = @intCast(locality_val.toUnsignedInt(zcu)),
24428 .cache = try sema.interpretStdLangType(block, cache_src, cache_val, std.builtin.PrefetchOptions.Cache),
24428 .cache = try sema.interpretStdLangType(block, cache_src, cache_val, std.lang.PrefetchOptions.Cache),
2442924429 };
2443024430}
2443124431
......@@ -24465,12 +24465,12 @@ fn resolveExternOptions(
2446524465) CompileError!struct {
2446624466 name: InternPool.NullTerminatedString,
2446724467 library_name: InternPool.OptionalNullTerminatedString,
24468 linkage: std.builtin.GlobalLinkage,
24469 visibility: std.builtin.SymbolVisibility,
24468 linkage: std.lang.GlobalLinkage,
24469 visibility: std.lang.SymbolVisibility,
2447024470 is_thread_local: bool,
2447124471 is_dll_import: bool,
24472 relocation: std.builtin.ExternOptions.Relocation,
24473 decoration: ?std.builtin.ExternOptions.Decoration,
24472 relocation: std.lang.ExternOptions.Relocation,
24473 decoration: ?std.lang.ExternOptions.Decoration,
2447424474} {
2447524475 const pt = sema.pt;
2447624476 const zcu = pt.zcu;
......@@ -24500,11 +24500,11 @@ fn resolveExternOptions(
2450024500
2450124501 const linkage_ref = try sema.fieldVal(block, src, options, try ip.getOrPutString(gpa, io, pt.tid, "linkage", .no_embedded_nulls), linkage_src);
2450224502 const linkage_val = try sema.resolveConstDefinedValue(block, linkage_src, linkage_ref, .{ .simple = .extern_options });
24503 const linkage = try sema.interpretStdLangType(block, linkage_src, linkage_val, std.builtin.GlobalLinkage);
24503 const linkage = try sema.interpretStdLangType(block, linkage_src, linkage_val, std.lang.GlobalLinkage);
2450424504
2450524505 const visibility_ref = try sema.fieldVal(block, src, options, try ip.getOrPutString(gpa, io, pt.tid, "visibility", .no_embedded_nulls), visibility_src);
2450624506 const visibility_val = try sema.resolveConstDefinedValue(block, visibility_src, visibility_ref, .{ .simple = .extern_options });
24507 const visibility = try sema.interpretStdLangType(block, visibility_src, visibility_val, std.builtin.SymbolVisibility);
24507 const visibility = try sema.interpretStdLangType(block, visibility_src, visibility_val, std.lang.SymbolVisibility);
2450824508
2450924509 const is_thread_local = try sema.fieldVal(block, src, options, try ip.getOrPutString(gpa, io, pt.tid, "is_thread_local", .no_embedded_nulls), thread_local_src);
2451024510 const is_thread_local_val = try sema.resolveConstDefinedValue(block, thread_local_src, is_thread_local, .{ .simple = .extern_options });
......@@ -24523,11 +24523,11 @@ fn resolveExternOptions(
2452324523
2452424524 const relocation_ref = try sema.fieldVal(block, src, options, try ip.getOrPutString(gpa, io, pt.tid, "relocation", .no_embedded_nulls), relocation_src);
2452524525 const relocation_val = try sema.resolveConstDefinedValue(block, relocation_src, relocation_ref, .{ .simple = .extern_options });
24526 const relocation = try sema.interpretStdLangType(block, relocation_src, relocation_val, std.builtin.ExternOptions.Relocation);
24526 const relocation = try sema.interpretStdLangType(block, relocation_src, relocation_val, std.lang.ExternOptions.Relocation);
2452724527
2452824528 const decoration_ref = try sema.fieldVal(block, src, options, try ip.getOrPutString(gpa, io, pt.tid, "decoration", .no_embedded_nulls), decoration_src);
2452924529 const decoration_val = try sema.resolveConstDefinedValue(block, decoration_src, decoration_ref, .{ .simple = .extern_options });
24530 const decoration = try sema.interpretStdLangType(block, decoration_src, decoration_val, ?std.builtin.ExternOptions.Decoration);
24530 const decoration = try sema.interpretStdLangType(block, decoration_src, decoration_val, ?std.lang.ExternOptions.Decoration);
2453124531
2453224532 if (name.len == 0) {
2453324533 return sema.fail(block, name_src, "extern symbol name cannot be empty", .{});
......@@ -24744,7 +24744,7 @@ fn zirStdLangValue(sema: *Sema, block: *Block, extended: Zir.Inst.Extended.InstD
2474424744 .calling_convention_inline => {
2474524745 const callconv_ty = try sema.getStdLangType(src, .CallingConvention);
2474624746 return .fromValue(Value.uninterpret(
24747 @as(std.builtin.CallingConvention, .@"inline"),
24747 @as(std.lang.CallingConvention, .@"inline"),
2474824748 callconv_ty,
2474924749 pt,
2475024750 ) catch |err| switch (err) {
......@@ -24795,7 +24795,7 @@ fn zirBranchHint(sema: *Sema, block: *Block, extended: Zir.Inst.Extended.InstDat
2479524795 // We only apply the first hint in a branch.
2479624796 // This allows user-provided hints to override implicit cold hints.
2479724797 if (sema.branch_hint == null) {
24798 sema.branch_hint = try sema.interpretStdLangType(block, operand_src, hint_val, std.builtin.BranchHint);
24798 sema.branch_hint = try sema.interpretStdLangType(block, operand_src, hint_val, std.lang.BranchHint);
2479924799 }
2480024800}
2480124801
......@@ -27911,8 +27911,8 @@ const InMemoryCoercionResult = union(enum) {
2791127911 };
2791227912
2791327913 const Int = struct {
27914 actual_signedness: std.builtin.Signedness,
27915 wanted_signedness: std.builtin.Signedness,
27914 actual_signedness: std.lang.Signedness,
27915 wanted_signedness: std.lang.Signedness,
2791627916 actual_bits: u16,
2791727917 wanted_bits: u16,
2791827918 };
......@@ -27928,18 +27928,18 @@ const InMemoryCoercionResult = union(enum) {
2792827928 };
2792927929
2793027930 const Size = struct {
27931 actual: std.builtin.Type.Pointer.Size,
27932 wanted: std.builtin.Type.Pointer.Size,
27931 actual: std.lang.Type.Pointer.Size,
27932 wanted: std.lang.Type.Pointer.Size,
2793327933 };
2793427934
2793527935 const AddressSpace = struct {
27936 actual: std.builtin.AddressSpace,
27937 wanted: std.builtin.AddressSpace,
27936 actual: std.lang.AddressSpace,
27937 wanted: std.lang.AddressSpace,
2793827938 };
2793927939
2794027940 const CC = struct {
27941 actual: std.builtin.CallingConvention,
27942 wanted: std.builtin.CallingConvention,
27941 actual: std.lang.CallingConvention,
27942 wanted: std.lang.CallingConvention,
2794327943 };
2794427944
2794527945 const BitRange = struct {
......@@ -28209,7 +28209,7 @@ const InMemoryCoercionResult = union(enum) {
2820928209 }
2821028210};
2821128211
28212fn pointerSizeString(size: std.builtin.Type.Pointer.Size) []const u8 {
28212fn pointerSizeString(size: std.lang.Type.Pointer.Size) []const u8 {
2821328213 return switch (size) {
2821428214 .one => "single pointer",
2821528215 .many => "many pointer",
......@@ -28635,10 +28635,10 @@ fn coerceInMemoryAllowedFns(
2863528635
2863628636fn callconvCoerceAllowed(
2863728637 target: *const std.Target,
28638 src_cc: std.builtin.CallingConvention,
28639 dest_cc: std.builtin.CallingConvention,
28638 src_cc: std.lang.CallingConvention,
28639 dest_cc: std.lang.CallingConvention,
2864028640) bool {
28641 const Tag = std.builtin.CallingConvention.Tag;
28641 const Tag = std.lang.CallingConvention.Tag;
2864228642 if (@as(Tag, src_cc) != @as(Tag, dest_cc)) return false;
2864328643
2864428644 switch (src_cc) {
......@@ -28651,26 +28651,26 @@ fn callconvCoerceAllowed(
2865128651 if (dest_stack_align < src_stack_align) return false;
2865228652 }
2865328653 switch (@TypeOf(src_data)) {
28654 void, std.builtin.CallingConvention.CommonOptions => {},
28655 std.builtin.CallingConvention.X86RegparmOptions => {
28654 void, std.lang.CallingConvention.CommonOptions => {},
28655 std.lang.CallingConvention.X86RegparmOptions => {
2865628656 if (src_data.register_params != dest_data.register_params) return false;
2865728657 },
28658 std.builtin.CallingConvention.ArcInterruptOptions => {
28658 std.lang.CallingConvention.ArcInterruptOptions => {
2865928659 if (src_data.type != dest_data.type) return false;
2866028660 },
28661 std.builtin.CallingConvention.ArmInterruptOptions => {
28661 std.lang.CallingConvention.ArmInterruptOptions => {
2866228662 if (src_data.type != dest_data.type) return false;
2866328663 },
28664 std.builtin.CallingConvention.MicroblazeInterruptOptions => {
28664 std.lang.CallingConvention.MicroblazeInterruptOptions => {
2866528665 if (src_data.type != dest_data.type) return false;
2866628666 },
28667 std.builtin.CallingConvention.MipsInterruptOptions => {
28667 std.lang.CallingConvention.MipsInterruptOptions => {
2866828668 if (src_data.mode != dest_data.mode) return false;
2866928669 },
28670 std.builtin.CallingConvention.RiscvInterruptOptions => {
28670 std.lang.CallingConvention.RiscvInterruptOptions => {
2867128671 if (src_data.mode != dest_data.mode) return false;
2867228672 },
28673 std.builtin.CallingConvention.ShInterruptOptions => {
28673 std.lang.CallingConvention.ShInterruptOptions => {
2867428674 if (src_data.save != dest_data.save) return false;
2867528675 },
2867628676 else => comptime unreachable,
......@@ -31115,7 +31115,7 @@ fn cmpNumeric(
3111531115 const dest_ty = if (dest_float_type) |ft| ft else blk: {
3111631116 const max_bits = @max(lhs_bits, rhs_bits);
3111731117 const casted_bits = std.math.cast(u16, max_bits) orelse return sema.fail(block, src, "{d} exceeds maximum integer bit count", .{max_bits});
31118 const signedness: std.builtin.Signedness = if (dest_int_is_signed) .signed else .unsigned;
31118 const signedness: std.lang.Signedness = if (dest_int_is_signed) .signed else .unsigned;
3111931119 break :blk try pt.intType(signedness, casted_bits);
3112031120 };
3112131121 const casted_lhs = try sema.coerce(block, dest_ty, lhs, lhs_src);
......@@ -33101,7 +33101,7 @@ fn resolveAddressSpace(
3310133101 src: LazySrcLoc,
3310233102 zir_ref: Zir.Inst.Ref,
3310333103 ctx: std.Target.AddressSpaceContext,
33104) !std.builtin.AddressSpace {
33104) !std.lang.AddressSpace {
3310533105 const air_ref = sema.resolveInst(zir_ref);
3310633106 return sema.analyzeAsAddressSpace(block, src, air_ref, ctx);
3310733107}
......@@ -33112,12 +33112,12 @@ pub fn analyzeAsAddressSpace(
3311233112 src: LazySrcLoc,
3311333113 air_ref: Air.Inst.Ref,
3311433114 ctx: std.Target.AddressSpaceContext,
33115) !std.builtin.AddressSpace {
33115) !std.lang.AddressSpace {
3311633116 const pt = sema.pt;
3311733117 const addrspace_ty = try sema.getStdLangType(src, .AddressSpace);
3311833118 const coerced = try sema.coerce(block, addrspace_ty, air_ref, src);
3311933119 const addrspace_val = try sema.resolveConstDefinedValue(block, src, coerced, .{ .simple = .@"addrspace" });
33120 const address_space = try sema.interpretStdLangType(block, src, addrspace_val, std.builtin.AddressSpace);
33120 const address_space = try sema.interpretStdLangType(block, src, addrspace_val, std.lang.AddressSpace);
3312133121 const target = pt.zcu.getTarget();
3312233122
3312333123 if (!target.supportsAddressSpace(address_space, ctx)) {
......@@ -33833,7 +33833,7 @@ pub fn getStdLangValue(sema: *Sema, src: LazySrcLoc, decl: Zcu.StdLangDecl) Sema
3383333833pub const NavPtrModifiers = struct {
3383433834 @"align": Alignment,
3383533835 @"linksection": InternPool.OptionalNullTerminatedString,
33836 @"addrspace": std.builtin.AddressSpace,
33836 @"addrspace": std.lang.AddressSpace,
3383733837};
3383833838
3383933839pub fn resolveNavPtrModifiers(
......@@ -33872,7 +33872,7 @@ pub fn resolveNavPtrModifiers(
3387233872 break :ls try ip.getOrPutStringOpt(gpa, io, pt.tid, bytes, .no_embedded_nulls);
3387333873 };
3387433874
33875 const @"addrspace": std.builtin.AddressSpace = as: {
33875 const @"addrspace": std.lang.AddressSpace = as: {
3387633876 const addrspace_ctx: std.Target.AddressSpaceContext = switch (zir_decl.kind) {
3387733877 .@"var" => .variable,
3387833878 else => switch (nav_ty.zigTypeTag(zcu)) {
src/Sema/arith.zig+2-2
......@@ -1191,7 +1191,7 @@ pub fn truncate(
11911191 val: Value,
11921192 ty: Type,
11931193 dest_ty: Type,
1194 dest_signedness: std.builtin.Signedness,
1194 dest_signedness: std.lang.Signedness,
11951195 dest_bits: u16,
11961196) CompileError!Value {
11971197 const pt = sema.pt;
......@@ -1808,7 +1808,7 @@ fn intTruncate(
18081808 sema: *Sema,
18091809 val: Value,
18101810 dest_ty: Type,
1811 dest_signedness: std.builtin.Signedness,
1811 dest_signedness: std.lang.Signedness,
18121812 dest_bits: u16,
18131813) !Value {
18141814 const pt = sema.pt;
src/Type.zig+8-8
......@@ -19,7 +19,7 @@ const Type = @This();
1919
2020ip_index: InternPool.Index,
2121
22pub fn zigTypeTag(ty: Type, zcu: *const Zcu) std.builtin.TypeId {
22pub fn zigTypeTag(ty: Type, zcu: *const Zcu) std.lang.TypeId {
2323 return zcu.intern_pool.zigTypeTag(ty.toIntern());
2424}
2525
......@@ -903,7 +903,7 @@ pub fn ptrAlignment(ptr_ty: Type, zcu: *Zcu) Alignment {
903903 return Type.fromInterned(ptr_key.child).abiAlignment(zcu);
904904}
905905
906pub fn ptrAddressSpace(ty: Type, zcu: *const Zcu) std.builtin.AddressSpace {
906pub fn ptrAddressSpace(ty: Type, zcu: *const Zcu) std.lang.AddressSpace {
907907 return switch (zcu.intern_pool.indexToKey(ty.toIntern())) {
908908 .ptr_type => |ptr_type| ptr_type.flags.address_space,
909909 .opt_type => |child| zcu.intern_pool.indexToKey(child).ptr_type.flags.address_space,
......@@ -1337,12 +1337,12 @@ pub fn isSinglePointer(ty: Type, zcu: *const Zcu) bool {
13371337}
13381338
13391339/// Asserts `ty` is a pointer.
1340pub fn ptrSize(ty: Type, zcu: *const Zcu) std.builtin.Type.Pointer.Size {
1340pub fn ptrSize(ty: Type, zcu: *const Zcu) std.lang.Type.Pointer.Size {
13411341 return ty.ptrSizeOrNull(zcu).?;
13421342}
13431343
13441344/// Returns `null` if `ty` is not a pointer.
1345pub fn ptrSizeOrNull(ty: Type, zcu: *const Zcu) ?std.builtin.Type.Pointer.Size {
1345pub fn ptrSizeOrNull(ty: Type, zcu: *const Zcu) ?std.lang.Type.Pointer.Size {
13461346 return switch (zcu.intern_pool.indexToKey(ty.toIntern())) {
13471347 .ptr_type => |ptr_info| ptr_info.flags.size,
13481348 else => null,
......@@ -1627,7 +1627,7 @@ pub fn unionGetLayout(ty: Type, zcu: *const Zcu) Zcu.UnionLayout {
16271627 return Type.getUnionLayout(union_obj, zcu);
16281628}
16291629
1630pub fn containerLayout(ty: Type, zcu: *const Zcu) std.builtin.Type.ContainerLayout {
1630pub fn containerLayout(ty: Type, zcu: *const Zcu) std.lang.Type.ContainerLayout {
16311631 const ip = &zcu.intern_pool;
16321632 return switch (ip.indexToKey(ty.toIntern())) {
16331633 .tuple_type => .auto,
......@@ -1949,7 +1949,7 @@ pub fn fnReturnType(ty: Type, zcu: *const Zcu) Type {
19491949}
19501950
19511951/// Asserts the type is a function.
1952pub fn fnCallingConvention(ty: Type, zcu: *const Zcu) std.builtin.CallingConvention {
1952pub fn fnCallingConvention(ty: Type, zcu: *const Zcu) std.lang.CallingConvention {
19531953 return zcu.intern_pool.indexToKey(ty.toIntern()).func_type.cc;
19541954}
19551955
......@@ -2477,7 +2477,7 @@ pub fn explicitFieldAlignment(ty: Type, index: usize, zcu: *const Zcu) Alignment
24772477/// Asserts that the layout of `field_ty` is resolved. Asserts that `layout` is not `.@"packed"`.
24782478pub fn defaultStructFieldAlignment(
24792479 field_ty: Type,
2480 layout: std.builtin.Type.ContainerLayout,
2480 layout: std.lang.Type.ContainerLayout,
24812481 zcu: *const Zcu,
24822482) Alignment {
24832483 const overalign_big_int = switch (layout) {
......@@ -3227,7 +3227,7 @@ pub fn validateExtern(ty: Type, position: ExternPosition, zcu: *const Zcu) bool
32273227 .optional => ty.isPtrLikeOptional(zcu),
32283228 };
32293229}
3230fn validateExternCallconv(cc: std.builtin.CallingConvention) bool {
3230fn validateExternCallconv(cc: std.lang.CallingConvention) bool {
32313231 return switch (cc) {
32323232 // For now we want to authorize PTX kernel to use zig objects, even if we end up exposing the ABI.
32333233 // The goal is to experiment with more integrated CPU/GPU code.
src/Value.zig+1-1
......@@ -1845,7 +1845,7 @@ pub fn ptrElem(orig_parent_ptr: Value, field_idx: u64, pt: Zcu.PerThread) !Value
18451845 } }));
18461846}
18471847
1848fn canonicalizeBasePtr(base_ptr: Value, want_size: std.builtin.Type.Pointer.Size, want_child: Type, pt: Zcu.PerThread) !Value {
1848fn canonicalizeBasePtr(base_ptr: Value, want_size: std.lang.Type.Pointer.Size, want_child: Type, pt: Zcu.PerThread) !Value {
18491849 const ptr_ty = base_ptr.typeOf(pt.zcu);
18501850 const ptr_info = ptr_ty.ptrInfo(pt.zcu);
18511851
src/Zcu.zig+4-4
......@@ -744,9 +744,9 @@ pub const Export = struct {
744744
745745 pub const Options = struct {
746746 name: InternPool.NullTerminatedString,
747 linkage: std.builtin.GlobalLinkage = .strong,
747 linkage: std.lang.GlobalLinkage = .strong,
748748 section: InternPool.OptionalNullTerminatedString = .none,
749 visibility: std.builtin.SymbolVisibility = .default,
749 visibility: std.lang.SymbolVisibility = .default,
750750 };
751751
752752 /// Index into `all_exports`.
......@@ -4524,10 +4524,10 @@ fn formatDependee(data: FormatDependee, writer: *Io.Writer) Io.Writer.Error!void
45244524 }
45254525}
45264526
4527pub fn callconvSupported(zcu: *Zcu, cc: std.builtin.CallingConvention) union(enum) {
4527pub fn callconvSupported(zcu: *Zcu, cc: std.lang.CallingConvention) union(enum) {
45284528 ok,
45294529 bad_arch: []const std.Target.Cpu.Arch, // value is allowed archs for cc
4530 bad_backend: std.builtin.CompilerBackend, // value is current backend
4530 bad_backend: std.lang.CompilerBackend, // value is current backend
45314531} {
45324532 const target = zcu.getTarget();
45334533 const backend = target_util.zigBackend(target, zcu.comp.config.use_llvm);
src/Zcu/PerThread.zig+1-1
......@@ -3965,7 +3965,7 @@ pub fn getCoerced(pt: Zcu.PerThread, val: Value, new_ty: Type) Allocator.Error!V
39653965 return .fromInterned(try ip.getCoerced(gpa, io, pt.tid, val.toIntern(), new_ty.toIntern()));
39663966}
39673967
3968pub fn intType(pt: Zcu.PerThread, signedness: std.builtin.Signedness, bits: u16) Allocator.Error!Type {
3968pub fn intType(pt: Zcu.PerThread, signedness: std.lang.Signedness, bits: u16) Allocator.Error!Type {
39693969 return Type.fromInterned(try pt.intern(.{ .int_type = .{
39703970 .signedness = signedness,
39713971 .bits = bits,
src/codegen.zig+3-3
......@@ -29,7 +29,7 @@ pub const CodeGenError = GenerateSymbolError || error{
2929 CodegenFail,
3030};
3131
32fn devFeatureForBackend(backend: std.builtin.CompilerBackend) dev.Feature {
32fn devFeatureForBackend(backend: std.lang.CompilerBackend) dev.Feature {
3333 return switch (backend) {
3434 .other, .stage1 => unreachable,
3535 .stage2_aarch64 => .aarch64_backend,
......@@ -47,7 +47,7 @@ fn devFeatureForBackend(backend: std.builtin.CompilerBackend) dev.Feature {
4747 };
4848}
4949
50fn importBackend(comptime backend: std.builtin.CompilerBackend) type {
50fn importBackend(comptime backend: std.lang.CompilerBackend) type {
5151 return switch (backend) {
5252 .other, .stage1 => unreachable,
5353 .stage2_aarch64 => aarch64,
......@@ -105,7 +105,7 @@ pub const AnyMir = union {
105105 wasm: if (dev.env.supports(.wasm_backend)) @import("codegen/wasm/Mir.zig") else noreturn,
106106 c: if (dev.env.supports(.c_backend)) @import("codegen/c.zig").Mir else noreturn,
107107
108 pub inline fn tag(comptime backend: std.builtin.CompilerBackend) []const u8 {
108 pub inline fn tag(comptime backend: std.lang.CompilerBackend) []const u8 {
109109 return switch (backend) {
110110 .stage2_aarch64 => "aarch64",
111111 .stage2_riscv64 => "riscv64",
src/codegen/aarch64/Assemble.zig+1-1
......@@ -307,7 +307,7 @@ const SymbolSpec = union(enum) {
307307 },
308308 systemreg,
309309 imm: struct {
310 type: std.builtin.Type.Int,
310 type: std.lang.Type.Int,
311311 multiple_of: ?comptime_int = null,
312312 min_valid: ?comptime_int = null,
313313 max_valid: ?comptime_int = null,
src/codegen/aarch64/Select.zig+16-16
......@@ -2887,7 +2887,7 @@ pub fn body(isel: *Select, air_body: []const Air.Inst.Index) error{ OutOfMemory,
28872887
28882888 const bin_op = air.data(air.inst_index).bin_op;
28892889 const ty = isel.air.typeOf(bin_op.lhs, ip);
2890 const int_info: std.builtin.Type.Int = if (ty.toIntern() == .bool_type)
2890 const int_info: std.lang.Type.Int = if (ty.toIntern() == .bool_type)
28912891 .{ .signedness = .unsigned, .bits = 1 }
28922892 else if (ty.isAbiInt(zcu))
28932893 ty.intInfo(zcu)
......@@ -3144,7 +3144,7 @@ pub fn body(isel: *Select, air_body: []const Air.Inst.Index) error{ OutOfMemory,
31443144
31453145 const ty_op = air.data(air.inst_index).ty_op;
31463146 const ty = ty_op.ty.toType();
3147 const int_info: std.builtin.Type.Int = int_info: {
3147 const int_info: std.lang.Type.Int = int_info: {
31483148 if (ty_op.ty == .bool_type) break :int_info .{ .signedness = .unsigned, .bits = 1 };
31493149 if (!ty.isAbiInt(zcu)) return isel.fail("bad {t} {f}", .{ air_tag, isel.fmtType(ty) });
31503150 break :int_info ty.intInfo(zcu);
......@@ -3199,7 +3199,7 @@ pub fn body(isel: *Select, air_body: []const Air.Inst.Index) error{ OutOfMemory,
31993199 const src_tag = src_ty.zigTypeTag(zcu);
32003200 if (dst_ty.isAbiInt(zcu) and (src_tag == .bool or src_ty.isAbiInt(zcu))) {
32013201 const dst_int_info = dst_ty.intInfo(zcu);
3202 const src_int_info: std.builtin.Type.Int = if (src_tag == .bool) .{ .signedness = undefined, .bits = 1 } else src_ty.intInfo(zcu);
3202 const src_int_info: std.lang.Type.Int = if (src_tag == .bool) .{ .signedness = undefined, .bits = 1 } else src_ty.intInfo(zcu);
32033203 assert(dst_int_info.bits == src_int_info.bits);
32043204 if (dst_tag != .@"struct" and src_tag != .@"struct" and src_tag != .bool and dst_int_info.signedness == src_int_info.signedness) {
32053205 try dst_vi.value.move(isel, ty_op.operand);
......@@ -4517,7 +4517,7 @@ pub fn body(isel: *Select, air_body: []const Air.Inst.Index) error{ OutOfMemory,
45174517 .switch_br => {
45184518 const switch_br = isel.air.unwrapSwitch(air.inst_index);
45194519 const cond_ty = isel.air.typeOf(switch_br.operand, ip);
4520 const cond_int_info: std.builtin.Type.Int = if (cond_ty.toIntern() == .bool_type)
4520 const cond_int_info: std.lang.Type.Int = if (cond_ty.toIntern() == .bool_type)
45214521 .{ .signedness = .unsigned, .bits = 1 }
45224522 else if (cond_ty.isAbiInt(zcu))
45234523 cond_ty.intInfo(zcu)
......@@ -8229,7 +8229,7 @@ fn elemPtr(
82298229fn clzLimb(
82308230 isel: *Select,
82318231 res_ra: Register.Alias,
8232 src_int_info: std.builtin.Type.Int,
8232 src_int_info: std.lang.Type.Int,
82338233 src_ra: Register.Alias,
82348234) !void {
82358235 switch (src_int_info.bits) {
......@@ -8274,7 +8274,7 @@ fn clzLimb(
82748274fn ctzLimb(
82758275 isel: *Select,
82768276 res_ra: Register.Alias,
8277 src_int_info: std.builtin.Type.Int,
8277 src_int_info: std.lang.Type.Int,
82788278 src_ra: Register.Alias,
82798279) !void {
82808280 switch (src_int_info.bits) {
......@@ -8319,7 +8319,7 @@ fn cmp(
83198319 var lhs_vi = orig_lhs_vi;
83208320 var rhs_vi = orig_rhs_vi;
83218321 if (!ty.isRuntimeFloat()) {
8322 const int_info: std.builtin.Type.Int = if (ty.toIntern() == .bool_type)
8322 const int_info: std.lang.Type.Int = if (ty.toIntern() == .bool_type)
83238323 .{ .signedness = .unsigned, .bits = 1 }
83248324 else if (ty.isAbiInt(isel.pt.zcu))
83258325 ty.intInfo(isel.pt.zcu)
......@@ -8523,7 +8523,7 @@ fn loadReg(
85238523 isel: *Select,
85248524 ra: Register.Alias,
85258525 size: u64,
8526 signedness: std.builtin.Signedness,
8526 signedness: std.lang.Signedness,
85278527 base_ra: Register.Alias,
85288528 offset: i65,
85298529) !void {
......@@ -8908,7 +8908,7 @@ pub const Value = struct {
89088908 },
89098909 small: struct {
89108910 size: u5,
8911 signedness: std.builtin.Signedness,
8911 signedness: std.lang.Signedness,
89128912 is_vector: bool,
89138913 hint: Register.Alias,
89148914 register: Register.Alias,
......@@ -9037,13 +9037,13 @@ pub const Value = struct {
90379037 };
90389038 }
90399039
9040 fn setSignedness(vi: Value.Index, isel: *Select, new_signedness: std.builtin.Signedness) void {
9040 fn setSignedness(vi: Value.Index, isel: *Select, new_signedness: std.lang.Signedness) void {
90419041 const value = vi.get(isel);
90429042 assert(value.location_payload.small.size <= 2);
90439043 value.location_payload.small.signedness = new_signedness;
90449044 }
90459045
9046 pub fn signedness(vi: Value.Index, isel: *Select) std.builtin.Signedness {
9046 pub fn signedness(vi: Value.Index, isel: *Select) std.lang.Signedness {
90479047 const value = vi.get(isel);
90489048 return switch (value.flags.location_tag) {
90499049 .large => .unsigned,
......@@ -9505,7 +9505,7 @@ pub const Value = struct {
95059505 offset: u64 = 0,
95069506 @"volatile": bool = false,
95079507 split: bool = true,
9508 wrap: ?std.builtin.Type.Int = null,
9508 wrap: ?std.lang.Type.Int = null,
95099509 expected_live_registers: *const LiveRegisters = &.initFill(.free),
95109510 };
95119511
......@@ -9717,7 +9717,7 @@ pub const Value = struct {
97179717 root_ty: ZigType,
97189718 opts: struct {
97199719 root_vi: Value.Index = .free,
9720 wrap: ?std.builtin.Type.Int = null,
9720 wrap: ?std.lang.Type.Int = null,
97219721 expected_live_registers: *const LiveRegisters = &.initFill(.free),
97229722 },
97239723 ) !?void {
......@@ -10289,7 +10289,7 @@ pub const Value = struct {
1028910289 const payload_ty: ZigType = .fromInterned(error_union_type.payload_type);
1029010290 const error_set_offset = codegen.errUnionErrorOffset(payload_ty, zcu);
1029110291 const payload_offset = codegen.errUnionPayloadOffset(payload_ty, zcu);
10292 const Part = struct { offset: u64, size: u64, signedness: ?std.builtin.Signedness, is_vector: bool };
10292 const Part = struct { offset: u64, size: u64, signedness: ?std.lang.Signedness, is_vector: bool };
1029310293 var parts: [2]Part = undefined;
1029410294 var parts_len: Value.PartsLen = 0;
1029510295 var field_end: u64 = 0;
......@@ -10393,7 +10393,7 @@ pub const Value = struct {
1039310393 (std.math.divCeil(u64, size, @as(u64, 1) << min_part_log2_stride) catch unreachable) > Value.max_parts)
1039410394 return isel.fail("Value.FieldPartIterator.next({f})", .{isel.fmtType(ty)});
1039510395 const alignment = vi.alignment(isel);
10396 const Part = struct { offset: u64, size: u64, signedness: ?std.builtin.Signedness, is_vector: bool };
10396 const Part = struct { offset: u64, size: u64, signedness: ?std.lang.Signedness, is_vector: bool };
1039710397 var parts: [Value.max_parts]Part = undefined;
1039810398 var parts_len: Value.PartsLen = 0;
1039910399 var field_end: u64 = 0;
......@@ -10512,7 +10512,7 @@ pub const Value = struct {
1051210512 const alignment = vi.alignment(isel);
1051310513 const tag_offset = union_layout.tagOffset();
1051410514 const payload_offset = union_layout.payloadOffset();
10515 const Part = struct { offset: u64, size: u64, signedness: ?std.builtin.Signedness };
10515 const Part = struct { offset: u64, size: u64, signedness: ?std.lang.Signedness };
1051610516 var parts: [2]Part = undefined;
1051710517 var parts_len: Value.PartsLen = 0;
1051810518 var field_end: u64 = 0;
src/codegen/aarch64/encoding.zig+154-154
......@@ -6755,7 +6755,7 @@ pub const Instruction = packed union {
67556755 o0: AddSubtractOp = .add,
67566756 Rm: Register.Encoded,
67576757 op21: u2 = 0b01,
6758 U: std.builtin.Signedness = .signed,
6758 U: std.lang.Signedness = .signed,
67596759 decoded24: u5 = 0b11011,
67606760 op54: u2 = 0b00,
67616761 sf: Register.GeneralSize = .doubleword,
......@@ -6769,7 +6769,7 @@ pub const Instruction = packed union {
67696769 o0: AddSubtractOp = .sub,
67706770 Rm: Register.Encoded,
67716771 op21: u2 = 0b01,
6772 U: std.builtin.Signedness = .signed,
6772 U: std.lang.Signedness = .signed,
67736773 decoded24: u5 = 0b11011,
67746774 op54: u2 = 0b00,
67756775 sf: Register.GeneralSize = .doubleword,
......@@ -6783,7 +6783,7 @@ pub const Instruction = packed union {
67836783 o0: AddSubtractOp = .add,
67846784 Rm: Register.Encoded,
67856785 op21: u2 = 0b10,
6786 U: std.builtin.Signedness = .signed,
6786 U: std.lang.Signedness = .signed,
67876787 decoded24: u5 = 0b11011,
67886788 op54: u2 = 0b00,
67896789 sf: Register.GeneralSize = .doubleword,
......@@ -6797,7 +6797,7 @@ pub const Instruction = packed union {
67976797 o0: AddSubtractOp = .add,
67986798 Rm: Register.Encoded,
67996799 op21: u2 = 0b01,
6800 U: std.builtin.Signedness = .unsigned,
6800 U: std.lang.Signedness = .unsigned,
68016801 decoded24: u5 = 0b11011,
68026802 op54: u2 = 0b00,
68036803 sf: Register.GeneralSize = .doubleword,
......@@ -6811,7 +6811,7 @@ pub const Instruction = packed union {
68116811 o0: AddSubtractOp = .sub,
68126812 Rm: Register.Encoded,
68136813 op21: u2 = 0b01,
6814 U: std.builtin.Signedness = .unsigned,
6814 U: std.lang.Signedness = .unsigned,
68156815 decoded24: u5 = 0b11011,
68166816 op54: u2 = 0b00,
68176817 sf: Register.GeneralSize = .doubleword,
......@@ -6825,7 +6825,7 @@ pub const Instruction = packed union {
68256825 o0: AddSubtractOp = .add,
68266826 Rm: Register.Encoded,
68276827 op21: u2 = 0b10,
6828 U: std.builtin.Signedness = .unsigned,
6828 U: std.lang.Signedness = .unsigned,
68296829 decoded24: u5 = 0b11011,
68306830 op54: u2 = 0b00,
68316831 sf: Register.GeneralSize = .doubleword,
......@@ -7052,7 +7052,7 @@ pub const Instruction = packed union {
70527052 decoded17: u6 = 0b111100,
70537053 a: u1,
70547054 decoded24: u5 = 0b11110,
7055 U: std.builtin.Signedness,
7055 U: std.lang.Signedness,
70567056 decoded30: u2 = 0b01,
70577057 };
70587058
......@@ -7065,7 +7065,7 @@ pub const Instruction = packed union {
70657065 decoded17: u6 = 0b111100,
70667066 o2: u1 = 0b0,
70677067 decoded24: u5 = 0b11110,
7068 U: std.builtin.Signedness = .signed,
7068 U: std.lang.Signedness = .signed,
70697069 decoded30: u2 = 0b01,
70707070 };
70717071
......@@ -7078,7 +7078,7 @@ pub const Instruction = packed union {
70787078 decoded17: u6 = 0b111100,
70797079 o2: u1 = 0b0,
70807080 decoded24: u5 = 0b11110,
7081 U: std.builtin.Signedness = .signed,
7081 U: std.lang.Signedness = .signed,
70827082 decoded30: u2 = 0b01,
70837083 };
70847084
......@@ -7091,7 +7091,7 @@ pub const Instruction = packed union {
70917091 decoded17: u6 = 0b111100,
70927092 o2: u1 = 0b0,
70937093 decoded24: u5 = 0b11110,
7094 U: std.builtin.Signedness = .signed,
7094 U: std.lang.Signedness = .signed,
70957095 decoded30: u2 = 0b01,
70967096 };
70977097
......@@ -7104,7 +7104,7 @@ pub const Instruction = packed union {
71047104 decoded17: u6 = 0b111100,
71057105 o2: u1 = 0b0,
71067106 decoded24: u5 = 0b11110,
7107 U: std.builtin.Signedness = .signed,
7107 U: std.lang.Signedness = .signed,
71087108 decoded30: u2 = 0b01,
71097109 };
71107110
......@@ -7117,7 +7117,7 @@ pub const Instruction = packed union {
71177117 decoded17: u6 = 0b111100,
71187118 o2: u1 = 0b1,
71197119 decoded24: u5 = 0b11110,
7120 U: std.builtin.Signedness = .signed,
7120 U: std.lang.Signedness = .signed,
71217121 decoded30: u2 = 0b01,
71227122 };
71237123
......@@ -7130,7 +7130,7 @@ pub const Instruction = packed union {
71307130 decoded17: u6 = 0b111100,
71317131 o2: u1 = 0b1,
71327132 decoded24: u5 = 0b11110,
7133 U: std.builtin.Signedness = .signed,
7133 U: std.lang.Signedness = .signed,
71347134 decoded30: u2 = 0b01,
71357135 };
71367136
......@@ -7143,7 +7143,7 @@ pub const Instruction = packed union {
71437143 decoded17: u6 = 0b111100,
71447144 o2: u1 = 0b1,
71457145 decoded24: u5 = 0b11110,
7146 U: std.builtin.Signedness = .signed,
7146 U: std.lang.Signedness = .signed,
71477147 decoded30: u2 = 0b01,
71487148 };
71497149
......@@ -7156,7 +7156,7 @@ pub const Instruction = packed union {
71567156 decoded17: u6 = 0b111100,
71577157 o2: u1 = 0b1,
71587158 decoded24: u5 = 0b11110,
7159 U: std.builtin.Signedness = .signed,
7159 U: std.lang.Signedness = .signed,
71607160 decoded30: u2 = 0b01,
71617161 };
71627162
......@@ -7169,7 +7169,7 @@ pub const Instruction = packed union {
71697169 decoded17: u6 = 0b111100,
71707170 o2: u1 = 0b1,
71717171 decoded24: u5 = 0b11110,
7172 U: std.builtin.Signedness = .signed,
7172 U: std.lang.Signedness = .signed,
71737173 decoded30: u2 = 0b01,
71747174 };
71757175
......@@ -7182,7 +7182,7 @@ pub const Instruction = packed union {
71827182 decoded17: u6 = 0b111100,
71837183 o2: u1 = 0b1,
71847184 decoded24: u5 = 0b11110,
7185 U: std.builtin.Signedness = .signed,
7185 U: std.lang.Signedness = .signed,
71867186 decoded30: u2 = 0b01,
71877187 };
71887188
......@@ -7195,7 +7195,7 @@ pub const Instruction = packed union {
71957195 decoded17: u6 = 0b111100,
71967196 o2: u1 = 0b1,
71977197 decoded24: u5 = 0b11110,
7198 U: std.builtin.Signedness = .signed,
7198 U: std.lang.Signedness = .signed,
71997199 decoded30: u2 = 0b01,
72007200 };
72017201
......@@ -7208,7 +7208,7 @@ pub const Instruction = packed union {
72087208 decoded17: u6 = 0b111100,
72097209 o2: u1 = 0b0,
72107210 decoded24: u5 = 0b11110,
7211 U: std.builtin.Signedness = .unsigned,
7211 U: std.lang.Signedness = .unsigned,
72127212 decoded30: u2 = 0b01,
72137213 };
72147214
......@@ -7221,7 +7221,7 @@ pub const Instruction = packed union {
72217221 decoded17: u6 = 0b111100,
72227222 o2: u1 = 0b0,
72237223 decoded24: u5 = 0b11110,
7224 U: std.builtin.Signedness = .unsigned,
7224 U: std.lang.Signedness = .unsigned,
72257225 decoded30: u2 = 0b01,
72267226 };
72277227
......@@ -7234,7 +7234,7 @@ pub const Instruction = packed union {
72347234 decoded17: u6 = 0b111100,
72357235 o2: u1 = 0b0,
72367236 decoded24: u5 = 0b11110,
7237 U: std.builtin.Signedness = .unsigned,
7237 U: std.lang.Signedness = .unsigned,
72387238 decoded30: u2 = 0b01,
72397239 };
72407240
......@@ -7247,7 +7247,7 @@ pub const Instruction = packed union {
72477247 decoded17: u6 = 0b111100,
72487248 o2: u1 = 0b0,
72497249 decoded24: u5 = 0b11110,
7250 U: std.builtin.Signedness = .unsigned,
7250 U: std.lang.Signedness = .unsigned,
72517251 decoded30: u2 = 0b01,
72527252 };
72537253
......@@ -7260,7 +7260,7 @@ pub const Instruction = packed union {
72607260 decoded17: u6 = 0b111100,
72617261 o2: u1 = 0b1,
72627262 decoded24: u5 = 0b11110,
7263 U: std.builtin.Signedness = .unsigned,
7263 U: std.lang.Signedness = .unsigned,
72647264 decoded30: u2 = 0b01,
72657265 };
72667266
......@@ -7273,7 +7273,7 @@ pub const Instruction = packed union {
72737273 decoded17: u6 = 0b111100,
72747274 o2: u1 = 0b1,
72757275 decoded24: u5 = 0b11110,
7276 U: std.builtin.Signedness = .unsigned,
7276 U: std.lang.Signedness = .unsigned,
72777277 decoded30: u2 = 0b01,
72787278 };
72797279
......@@ -7286,7 +7286,7 @@ pub const Instruction = packed union {
72867286 decoded17: u6 = 0b111100,
72877287 o2: u1 = 0b1,
72887288 decoded24: u5 = 0b11110,
7289 U: std.builtin.Signedness = .unsigned,
7289 U: std.lang.Signedness = .unsigned,
72907290 decoded30: u2 = 0b01,
72917291 };
72927292
......@@ -7299,7 +7299,7 @@ pub const Instruction = packed union {
72997299 decoded17: u6 = 0b111100,
73007300 o2: u1 = 0b1,
73017301 decoded24: u5 = 0b11110,
7302 U: std.builtin.Signedness = .unsigned,
7302 U: std.lang.Signedness = .unsigned,
73037303 decoded30: u2 = 0b01,
73047304 };
73057305
......@@ -7312,7 +7312,7 @@ pub const Instruction = packed union {
73127312 decoded17: u6 = 0b111100,
73137313 o2: u1 = 0b1,
73147314 decoded24: u5 = 0b11110,
7315 U: std.builtin.Signedness = .unsigned,
7315 U: std.lang.Signedness = .unsigned,
73167316 decoded30: u2 = 0b01,
73177317 };
73187318
......@@ -7428,7 +7428,7 @@ pub const Instruction = packed union {
74287428 decoded17: u5 = 0b10000,
74297429 size: Size,
74307430 decoded24: u5 = 0b11110,
7431 U: std.builtin.Signedness,
7431 U: std.lang.Signedness,
74327432 decoded30: u2 = 0b01,
74337433 };
74347434
......@@ -7441,7 +7441,7 @@ pub const Instruction = packed union {
74417441 decoded17: u5 = 0b10000,
74427442 size: Size,
74437443 decoded24: u5 = 0b11110,
7444 U: std.builtin.Signedness = .signed,
7444 U: std.lang.Signedness = .signed,
74457445 decoded30: u2 = 0b01,
74467446 };
74477447
......@@ -7454,7 +7454,7 @@ pub const Instruction = packed union {
74547454 decoded17: u5 = 0b10000,
74557455 size: Size,
74567456 decoded24: u5 = 0b11110,
7457 U: std.builtin.Signedness = .signed,
7457 U: std.lang.Signedness = .signed,
74587458 decoded30: u2 = 0b01,
74597459 };
74607460
......@@ -7467,7 +7467,7 @@ pub const Instruction = packed union {
74677467 decoded17: u5 = 0b10000,
74687468 size: Size,
74697469 decoded24: u5 = 0b11110,
7470 U: std.builtin.Signedness = .signed,
7470 U: std.lang.Signedness = .signed,
74717471 decoded30: u2 = 0b01,
74727472 };
74737473
......@@ -7480,7 +7480,7 @@ pub const Instruction = packed union {
74807480 decoded17: u5 = 0b10000,
74817481 size: Size,
74827482 decoded24: u5 = 0b11110,
7483 U: std.builtin.Signedness = .signed,
7483 U: std.lang.Signedness = .signed,
74847484 decoded30: u2 = 0b01,
74857485 };
74867486
......@@ -7493,7 +7493,7 @@ pub const Instruction = packed union {
74937493 decoded17: u5 = 0b10000,
74947494 size: Size,
74957495 decoded24: u5 = 0b11110,
7496 U: std.builtin.Signedness = .signed,
7496 U: std.lang.Signedness = .signed,
74977497 decoded30: u2 = 0b01,
74987498 };
74997499
......@@ -7506,7 +7506,7 @@ pub const Instruction = packed union {
75067506 decoded17: u5 = 0b10000,
75077507 size: Size,
75087508 decoded24: u5 = 0b11110,
7509 U: std.builtin.Signedness = .signed,
7509 U: std.lang.Signedness = .signed,
75107510 decoded30: u2 = 0b01,
75117511 };
75127512
......@@ -7519,7 +7519,7 @@ pub const Instruction = packed union {
75197519 decoded17: u5 = 0b10000,
75207520 size: Size,
75217521 decoded24: u5 = 0b11110,
7522 U: std.builtin.Signedness = .signed,
7522 U: std.lang.Signedness = .signed,
75237523 decoded30: u2 = 0b01,
75247524 };
75257525
......@@ -7533,7 +7533,7 @@ pub const Instruction = packed union {
75337533 sz: Sz,
75347534 o2: u1 = 0b0,
75357535 decoded24: u5 = 0b11110,
7536 U: std.builtin.Signedness = .signed,
7536 U: std.lang.Signedness = .signed,
75377537 decoded30: u2 = 0b01,
75387538 };
75397539
......@@ -7547,7 +7547,7 @@ pub const Instruction = packed union {
75477547 sz: Sz,
75487548 o2: u1 = 0b0,
75497549 decoded24: u5 = 0b11110,
7550 U: std.builtin.Signedness = .signed,
7550 U: std.lang.Signedness = .signed,
75517551 decoded30: u2 = 0b01,
75527552 };
75537553
......@@ -7561,7 +7561,7 @@ pub const Instruction = packed union {
75617561 sz: Sz,
75627562 o2: u1 = 0b0,
75637563 decoded24: u5 = 0b11110,
7564 U: std.builtin.Signedness = .signed,
7564 U: std.lang.Signedness = .signed,
75657565 decoded30: u2 = 0b01,
75667566 };
75677567
......@@ -7575,7 +7575,7 @@ pub const Instruction = packed union {
75757575 sz: Sz,
75767576 o2: u1 = 0b0,
75777577 decoded24: u5 = 0b11110,
7578 U: std.builtin.Signedness = .signed,
7578 U: std.lang.Signedness = .signed,
75797579 decoded30: u2 = 0b01,
75807580 };
75817581
......@@ -7589,7 +7589,7 @@ pub const Instruction = packed union {
75897589 sz: Sz,
75907590 o2: u1 = 0b1,
75917591 decoded24: u5 = 0b11110,
7592 U: std.builtin.Signedness = .signed,
7592 U: std.lang.Signedness = .signed,
75937593 decoded30: u2 = 0b01,
75947594 };
75957595
......@@ -7603,7 +7603,7 @@ pub const Instruction = packed union {
76037603 sz: Sz,
76047604 o2: u1 = 0b1,
76057605 decoded24: u5 = 0b11110,
7606 U: std.builtin.Signedness = .signed,
7606 U: std.lang.Signedness = .signed,
76077607 decoded30: u2 = 0b01,
76087608 };
76097609
......@@ -7617,7 +7617,7 @@ pub const Instruction = packed union {
76177617 sz: Sz,
76187618 o2: u1 = 0b1,
76197619 decoded24: u5 = 0b11110,
7620 U: std.builtin.Signedness = .signed,
7620 U: std.lang.Signedness = .signed,
76217621 decoded30: u2 = 0b01,
76227622 };
76237623
......@@ -7631,7 +7631,7 @@ pub const Instruction = packed union {
76317631 sz: Sz,
76327632 o2: u1 = 0b1,
76337633 decoded24: u5 = 0b11110,
7634 U: std.builtin.Signedness = .signed,
7634 U: std.lang.Signedness = .signed,
76357635 decoded30: u2 = 0b01,
76367636 };
76377637
......@@ -7645,7 +7645,7 @@ pub const Instruction = packed union {
76457645 sz: Sz,
76467646 o2: u1 = 0b1,
76477647 decoded24: u5 = 0b11110,
7648 U: std.builtin.Signedness = .signed,
7648 U: std.lang.Signedness = .signed,
76497649 decoded30: u2 = 0b01,
76507650 };
76517651
......@@ -7659,7 +7659,7 @@ pub const Instruction = packed union {
76597659 sz: Sz,
76607660 o2: u1 = 0b1,
76617661 decoded24: u5 = 0b11110,
7662 U: std.builtin.Signedness = .signed,
7662 U: std.lang.Signedness = .signed,
76637663 decoded30: u2 = 0b01,
76647664 };
76657665
......@@ -7673,7 +7673,7 @@ pub const Instruction = packed union {
76737673 sz: Sz,
76747674 o2: u1 = 0b1,
76757675 decoded24: u5 = 0b11110,
7676 U: std.builtin.Signedness = .signed,
7676 U: std.lang.Signedness = .signed,
76777677 decoded30: u2 = 0b01,
76787678 };
76797679
......@@ -7686,7 +7686,7 @@ pub const Instruction = packed union {
76867686 decoded17: u5 = 0b10000,
76877687 size: Size,
76887688 decoded24: u5 = 0b11110,
7689 U: std.builtin.Signedness = .unsigned,
7689 U: std.lang.Signedness = .unsigned,
76907690 decoded30: u2 = 0b01,
76917691 };
76927692
......@@ -7699,7 +7699,7 @@ pub const Instruction = packed union {
76997699 decoded17: u5 = 0b10000,
77007700 size: Size,
77017701 decoded24: u5 = 0b11110,
7702 U: std.builtin.Signedness = .unsigned,
7702 U: std.lang.Signedness = .unsigned,
77037703 decoded30: u2 = 0b01,
77047704 };
77057705
......@@ -7712,7 +7712,7 @@ pub const Instruction = packed union {
77127712 decoded17: u5 = 0b10000,
77137713 size: Size,
77147714 decoded24: u5 = 0b11110,
7715 U: std.builtin.Signedness = .unsigned,
7715 U: std.lang.Signedness = .unsigned,
77167716 decoded30: u2 = 0b01,
77177717 };
77187718
......@@ -7725,7 +7725,7 @@ pub const Instruction = packed union {
77257725 decoded17: u5 = 0b10000,
77267726 size: Size,
77277727 decoded24: u5 = 0b11110,
7728 U: std.builtin.Signedness = .unsigned,
7728 U: std.lang.Signedness = .unsigned,
77297729 decoded30: u2 = 0b01,
77307730 };
77317731
......@@ -7738,7 +7738,7 @@ pub const Instruction = packed union {
77387738 decoded17: u5 = 0b10000,
77397739 size: Size,
77407740 decoded24: u5 = 0b11110,
7741 U: std.builtin.Signedness = .unsigned,
7741 U: std.lang.Signedness = .unsigned,
77427742 decoded30: u2 = 0b01,
77437743 };
77447744
......@@ -7751,7 +7751,7 @@ pub const Instruction = packed union {
77517751 decoded17: u5 = 0b10000,
77527752 size: Size,
77537753 decoded24: u5 = 0b11110,
7754 U: std.builtin.Signedness = .unsigned,
7754 U: std.lang.Signedness = .unsigned,
77557755 decoded30: u2 = 0b01,
77567756 };
77577757
......@@ -7764,7 +7764,7 @@ pub const Instruction = packed union {
77647764 decoded17: u5 = 0b10000,
77657765 size: Size,
77667766 decoded24: u5 = 0b11110,
7767 U: std.builtin.Signedness = .unsigned,
7767 U: std.lang.Signedness = .unsigned,
77687768 decoded30: u2 = 0b01,
77697769 };
77707770
......@@ -7778,7 +7778,7 @@ pub const Instruction = packed union {
77787778 sz: Sz,
77797779 o2: u1 = 0b0,
77807780 decoded24: u5 = 0b11110,
7781 U: std.builtin.Signedness = .unsigned,
7781 U: std.lang.Signedness = .unsigned,
77827782 decoded30: u2 = 0b01,
77837783 };
77847784
......@@ -7792,7 +7792,7 @@ pub const Instruction = packed union {
77927792 sz: Sz,
77937793 o2: u1 = 0b0,
77947794 decoded24: u5 = 0b11110,
7795 U: std.builtin.Signedness = .unsigned,
7795 U: std.lang.Signedness = .unsigned,
77967796 decoded30: u2 = 0b01,
77977797 };
77987798
......@@ -7806,7 +7806,7 @@ pub const Instruction = packed union {
78067806 sz: Sz,
78077807 o2: u1 = 0b0,
78087808 decoded24: u5 = 0b11110,
7809 U: std.builtin.Signedness = .unsigned,
7809 U: std.lang.Signedness = .unsigned,
78107810 decoded30: u2 = 0b01,
78117811 };
78127812
......@@ -7820,7 +7820,7 @@ pub const Instruction = packed union {
78207820 sz: Sz,
78217821 o2: u1 = 0b0,
78227822 decoded24: u5 = 0b11110,
7823 U: std.builtin.Signedness = .unsigned,
7823 U: std.lang.Signedness = .unsigned,
78247824 decoded30: u2 = 0b01,
78257825 };
78267826
......@@ -7834,7 +7834,7 @@ pub const Instruction = packed union {
78347834 sz: Sz,
78357835 o2: u1 = 0b0,
78367836 decoded24: u5 = 0b11110,
7837 U: std.builtin.Signedness = .unsigned,
7837 U: std.lang.Signedness = .unsigned,
78387838 decoded30: u2 = 0b01,
78397839 };
78407840
......@@ -7848,7 +7848,7 @@ pub const Instruction = packed union {
78487848 sz: Sz,
78497849 o2: u1 = 0b1,
78507850 decoded24: u5 = 0b11110,
7851 U: std.builtin.Signedness = .unsigned,
7851 U: std.lang.Signedness = .unsigned,
78527852 decoded30: u2 = 0b01,
78537853 };
78547854
......@@ -7862,7 +7862,7 @@ pub const Instruction = packed union {
78627862 sz: Sz,
78637863 o2: u1 = 0b1,
78647864 decoded24: u5 = 0b11110,
7865 U: std.builtin.Signedness = .unsigned,
7865 U: std.lang.Signedness = .unsigned,
78667866 decoded30: u2 = 0b01,
78677867 };
78687868
......@@ -7876,7 +7876,7 @@ pub const Instruction = packed union {
78767876 sz: Sz,
78777877 o2: u1 = 0b1,
78787878 decoded24: u5 = 0b11110,
7879 U: std.builtin.Signedness = .unsigned,
7879 U: std.lang.Signedness = .unsigned,
78807880 decoded30: u2 = 0b01,
78817881 };
78827882
......@@ -7890,7 +7890,7 @@ pub const Instruction = packed union {
78907890 sz: Sz,
78917891 o2: u1 = 0b1,
78927892 decoded24: u5 = 0b11110,
7893 U: std.builtin.Signedness = .unsigned,
7893 U: std.lang.Signedness = .unsigned,
78947894 decoded30: u2 = 0b01,
78957895 };
78967896
......@@ -7904,7 +7904,7 @@ pub const Instruction = packed union {
79047904 sz: Sz,
79057905 o2: u1 = 0b1,
79067906 decoded24: u5 = 0b11110,
7907 U: std.builtin.Signedness = .unsigned,
7907 U: std.lang.Signedness = .unsigned,
79087908 decoded30: u2 = 0b01,
79097909 };
79107910
......@@ -8045,7 +8045,7 @@ pub const Instruction = packed union {
80458045 decoded17: u5 = 0b11000,
80468046 size: Size,
80478047 decoded24: u5 = 0b11110,
8048 U: std.builtin.Signedness,
8048 U: std.lang.Signedness,
80498049 decoded30: u2 = 0b01,
80508050 };
80518051
......@@ -8058,7 +8058,7 @@ pub const Instruction = packed union {
80588058 decoded17: u5 = 0b11000,
80598059 size: Size,
80608060 decoded24: u5 = 0b11110,
8061 U: std.builtin.Signedness = .signed,
8061 U: std.lang.Signedness = .signed,
80628062 decoded30: u2 = 0b01,
80638063 };
80648064
......@@ -8262,7 +8262,7 @@ pub const Instruction = packed union {
82628262 decoded17: u6 = 0b111100,
82638263 a: u1,
82648264 decoded24: u5 = 0b01110,
8265 U: std.builtin.Signedness,
8265 U: std.lang.Signedness,
82668266 Q: Q,
82678267 decoded31: u1 = 0b0,
82688268 };
......@@ -8276,7 +8276,7 @@ pub const Instruction = packed union {
82768276 decoded17: u6 = 0b111100,
82778277 o2: u1 = 0b0,
82788278 decoded24: u5 = 0b01110,
8279 U: std.builtin.Signedness = .signed,
8279 U: std.lang.Signedness = .signed,
82808280 Q: Q,
82818281 decoded31: u1 = 0b0,
82828282 };
......@@ -8290,7 +8290,7 @@ pub const Instruction = packed union {
82908290 decoded17: u6 = 0b111100,
82918291 o2: u1 = 0b0,
82928292 decoded24: u5 = 0b01110,
8293 U: std.builtin.Signedness = .signed,
8293 U: std.lang.Signedness = .signed,
82948294 Q: Q,
82958295 decoded31: u1 = 0b0,
82968296 };
......@@ -8304,7 +8304,7 @@ pub const Instruction = packed union {
83048304 decoded17: u6 = 0b111100,
83058305 o2: u1 = 0b0,
83068306 decoded24: u5 = 0b01110,
8307 U: std.builtin.Signedness = .signed,
8307 U: std.lang.Signedness = .signed,
83088308 Q: Q,
83098309 decoded31: u1 = 0b0,
83108310 };
......@@ -8318,7 +8318,7 @@ pub const Instruction = packed union {
83188318 decoded17: u6 = 0b111100,
83198319 o2: u1 = 0b0,
83208320 decoded24: u5 = 0b01110,
8321 U: std.builtin.Signedness = .signed,
8321 U: std.lang.Signedness = .signed,
83228322 Q: Q,
83238323 decoded31: u1 = 0b0,
83248324 };
......@@ -8332,7 +8332,7 @@ pub const Instruction = packed union {
83328332 decoded17: u6 = 0b111100,
83338333 o2: u1 = 0b0,
83348334 decoded24: u5 = 0b01110,
8335 U: std.builtin.Signedness = .signed,
8335 U: std.lang.Signedness = .signed,
83368336 Q: Q,
83378337 decoded31: u1 = 0b0,
83388338 };
......@@ -8346,7 +8346,7 @@ pub const Instruction = packed union {
83468346 decoded17: u6 = 0b111100,
83478347 o2: u1 = 0b0,
83488348 decoded24: u5 = 0b01110,
8349 U: std.builtin.Signedness = .signed,
8349 U: std.lang.Signedness = .signed,
83508350 Q: Q,
83518351 decoded31: u1 = 0b0,
83528352 };
......@@ -8360,7 +8360,7 @@ pub const Instruction = packed union {
83608360 decoded17: u6 = 0b111100,
83618361 o2: u1 = 0b1,
83628362 decoded24: u5 = 0b01110,
8363 U: std.builtin.Signedness = .signed,
8363 U: std.lang.Signedness = .signed,
83648364 Q: Q,
83658365 decoded31: u1 = 0b0,
83668366 };
......@@ -8374,7 +8374,7 @@ pub const Instruction = packed union {
83748374 decoded17: u6 = 0b111100,
83758375 o2: u1 = 0b1,
83768376 decoded24: u5 = 0b01110,
8377 U: std.builtin.Signedness = .signed,
8377 U: std.lang.Signedness = .signed,
83788378 Q: Q,
83798379 decoded31: u1 = 0b0,
83808380 };
......@@ -8388,7 +8388,7 @@ pub const Instruction = packed union {
83888388 decoded17: u6 = 0b111100,
83898389 o2: u1 = 0b1,
83908390 decoded24: u5 = 0b01110,
8391 U: std.builtin.Signedness = .signed,
8391 U: std.lang.Signedness = .signed,
83928392 Q: Q,
83938393 decoded31: u1 = 0b0,
83948394 };
......@@ -8402,7 +8402,7 @@ pub const Instruction = packed union {
84028402 decoded17: u6 = 0b111100,
84038403 o2: u1 = 0b1,
84048404 decoded24: u5 = 0b01110,
8405 U: std.builtin.Signedness = .signed,
8405 U: std.lang.Signedness = .signed,
84068406 Q: Q,
84078407 decoded31: u1 = 0b0,
84088408 };
......@@ -8416,7 +8416,7 @@ pub const Instruction = packed union {
84168416 decoded17: u6 = 0b111100,
84178417 o2: u1 = 0b1,
84188418 decoded24: u5 = 0b01110,
8419 U: std.builtin.Signedness = .signed,
8419 U: std.lang.Signedness = .signed,
84208420 Q: Q,
84218421 decoded31: u1 = 0b0,
84228422 };
......@@ -8430,7 +8430,7 @@ pub const Instruction = packed union {
84308430 decoded17: u6 = 0b111100,
84318431 o2: u1 = 0b1,
84328432 decoded24: u5 = 0b01110,
8433 U: std.builtin.Signedness = .signed,
8433 U: std.lang.Signedness = .signed,
84348434 Q: Q,
84358435 decoded31: u1 = 0b0,
84368436 };
......@@ -8444,7 +8444,7 @@ pub const Instruction = packed union {
84448444 decoded17: u6 = 0b111100,
84458445 o2: u1 = 0b1,
84468446 decoded24: u5 = 0b01110,
8447 U: std.builtin.Signedness = .signed,
8447 U: std.lang.Signedness = .signed,
84488448 Q: Q,
84498449 decoded31: u1 = 0b0,
84508450 };
......@@ -8458,7 +8458,7 @@ pub const Instruction = packed union {
84588458 decoded17: u6 = 0b111100,
84598459 o2: u1 = 0b1,
84608460 decoded24: u5 = 0b01110,
8461 U: std.builtin.Signedness = .signed,
8461 U: std.lang.Signedness = .signed,
84628462 Q: Q,
84638463 decoded31: u1 = 0b0,
84648464 };
......@@ -8472,7 +8472,7 @@ pub const Instruction = packed union {
84728472 decoded17: u6 = 0b111100,
84738473 o2: u1 = 0b1,
84748474 decoded24: u5 = 0b01110,
8475 U: std.builtin.Signedness = .signed,
8475 U: std.lang.Signedness = .signed,
84768476 Q: Q,
84778477 decoded31: u1 = 0b0,
84788478 };
......@@ -8486,7 +8486,7 @@ pub const Instruction = packed union {
84868486 decoded17: u6 = 0b111100,
84878487 o2: u1 = 0b0,
84888488 decoded24: u5 = 0b01110,
8489 U: std.builtin.Signedness = .unsigned,
8489 U: std.lang.Signedness = .unsigned,
84908490 Q: Q,
84918491 decoded31: u1 = 0b0,
84928492 };
......@@ -8500,7 +8500,7 @@ pub const Instruction = packed union {
85008500 decoded17: u6 = 0b111100,
85018501 o2: u1 = 0b0,
85028502 decoded24: u5 = 0b01110,
8503 U: std.builtin.Signedness = .unsigned,
8503 U: std.lang.Signedness = .unsigned,
85048504 Q: Q,
85058505 decoded31: u1 = 0b0,
85068506 };
......@@ -8514,7 +8514,7 @@ pub const Instruction = packed union {
85148514 decoded17: u6 = 0b111100,
85158515 o2: u1 = 0b0,
85168516 decoded24: u5 = 0b01110,
8517 U: std.builtin.Signedness = .unsigned,
8517 U: std.lang.Signedness = .unsigned,
85188518 Q: Q,
85198519 decoded31: u1 = 0b0,
85208520 };
......@@ -8528,7 +8528,7 @@ pub const Instruction = packed union {
85288528 decoded17: u6 = 0b111100,
85298529 o2: u1 = 0b0,
85308530 decoded24: u5 = 0b01110,
8531 U: std.builtin.Signedness = .unsigned,
8531 U: std.lang.Signedness = .unsigned,
85328532 Q: Q,
85338533 decoded31: u1 = 0b0,
85348534 };
......@@ -8542,7 +8542,7 @@ pub const Instruction = packed union {
85428542 decoded17: u6 = 0b111100,
85438543 o2: u1 = 0b0,
85448544 decoded24: u5 = 0b01110,
8545 U: std.builtin.Signedness = .unsigned,
8545 U: std.lang.Signedness = .unsigned,
85468546 Q: Q,
85478547 decoded31: u1 = 0b0,
85488548 };
......@@ -8556,7 +8556,7 @@ pub const Instruction = packed union {
85568556 decoded17: u6 = 0b111100,
85578557 o2: u1 = 0b0,
85588558 decoded24: u5 = 0b01110,
8559 U: std.builtin.Signedness = .unsigned,
8559 U: std.lang.Signedness = .unsigned,
85608560 Q: Q,
85618561 decoded31: u1 = 0b0,
85628562 };
......@@ -8570,7 +8570,7 @@ pub const Instruction = packed union {
85708570 decoded17: u6 = 0b111100,
85718571 o2: u1 = 0b1,
85728572 decoded24: u5 = 0b01110,
8573 U: std.builtin.Signedness = .unsigned,
8573 U: std.lang.Signedness = .unsigned,
85748574 Q: Q,
85758575 decoded31: u1 = 0b0,
85768576 };
......@@ -8584,7 +8584,7 @@ pub const Instruction = packed union {
85848584 decoded17: u6 = 0b111100,
85858585 o2: u1 = 0b1,
85868586 decoded24: u5 = 0b01110,
8587 U: std.builtin.Signedness = .unsigned,
8587 U: std.lang.Signedness = .unsigned,
85888588 Q: Q,
85898589 decoded31: u1 = 0b0,
85908590 };
......@@ -8598,7 +8598,7 @@ pub const Instruction = packed union {
85988598 decoded17: u6 = 0b111100,
85998599 o2: u1 = 0b1,
86008600 decoded24: u5 = 0b01110,
8601 U: std.builtin.Signedness = .unsigned,
8601 U: std.lang.Signedness = .unsigned,
86028602 Q: Q,
86038603 decoded31: u1 = 0b0,
86048604 };
......@@ -8612,7 +8612,7 @@ pub const Instruction = packed union {
86128612 decoded17: u6 = 0b111100,
86138613 o2: u1 = 0b1,
86148614 decoded24: u5 = 0b01110,
8615 U: std.builtin.Signedness = .unsigned,
8615 U: std.lang.Signedness = .unsigned,
86168616 Q: Q,
86178617 decoded31: u1 = 0b0,
86188618 };
......@@ -8626,7 +8626,7 @@ pub const Instruction = packed union {
86268626 decoded17: u6 = 0b111100,
86278627 o2: u1 = 0b1,
86288628 decoded24: u5 = 0b01110,
8629 U: std.builtin.Signedness = .unsigned,
8629 U: std.lang.Signedness = .unsigned,
86308630 Q: Q,
86318631 decoded31: u1 = 0b0,
86328632 };
......@@ -8640,7 +8640,7 @@ pub const Instruction = packed union {
86408640 decoded17: u6 = 0b111100,
86418641 o2: u1 = 0b1,
86428642 decoded24: u5 = 0b01110,
8643 U: std.builtin.Signedness = .unsigned,
8643 U: std.lang.Signedness = .unsigned,
86448644 Q: Q,
86458645 decoded31: u1 = 0b0,
86468646 };
......@@ -8654,7 +8654,7 @@ pub const Instruction = packed union {
86548654 decoded17: u6 = 0b111100,
86558655 o2: u1 = 0b1,
86568656 decoded24: u5 = 0b01110,
8657 U: std.builtin.Signedness = .unsigned,
8657 U: std.lang.Signedness = .unsigned,
86588658 Q: Q,
86598659 decoded31: u1 = 0b0,
86608660 };
......@@ -8668,7 +8668,7 @@ pub const Instruction = packed union {
86688668 decoded17: u6 = 0b111100,
86698669 o2: u1 = 0b1,
86708670 decoded24: u5 = 0b01110,
8671 U: std.builtin.Signedness = .unsigned,
8671 U: std.lang.Signedness = .unsigned,
86728672 Q: Q,
86738673 decoded31: u1 = 0b0,
86748674 };
......@@ -8814,7 +8814,7 @@ pub const Instruction = packed union {
88148814 decoded17: u5 = 0b10000,
88158815 size: Size,
88168816 decoded24: u5 = 0b01110,
8817 U: std.builtin.Signedness,
8817 U: std.lang.Signedness,
88188818 Q: Q,
88198819 decoded31: u1 = 0b0,
88208820 };
......@@ -8828,7 +8828,7 @@ pub const Instruction = packed union {
88288828 decoded17: u5 = 0b10000,
88298829 size: Size,
88308830 decoded24: u5 = 0b01110,
8831 U: std.builtin.Signedness = .signed,
8831 U: std.lang.Signedness = .signed,
88328832 Q: Q,
88338833 decoded31: u1 = 0b0,
88348834 };
......@@ -8842,7 +8842,7 @@ pub const Instruction = packed union {
88428842 decoded17: u5 = 0b10000,
88438843 size: Size,
88448844 decoded24: u5 = 0b01110,
8845 U: std.builtin.Signedness = .signed,
8845 U: std.lang.Signedness = .signed,
88468846 Q: Q,
88478847 decoded31: u1 = 0b0,
88488848 };
......@@ -8856,7 +8856,7 @@ pub const Instruction = packed union {
88568856 decoded17: u5 = 0b10000,
88578857 size: Size,
88588858 decoded24: u5 = 0b01110,
8859 U: std.builtin.Signedness = .signed,
8859 U: std.lang.Signedness = .signed,
88608860 Q: Q,
88618861 decoded31: u1 = 0b0,
88628862 };
......@@ -8870,7 +8870,7 @@ pub const Instruction = packed union {
88708870 decoded17: u5 = 0b10000,
88718871 size: Size,
88728872 decoded24: u5 = 0b01110,
8873 U: std.builtin.Signedness = .signed,
8873 U: std.lang.Signedness = .signed,
88748874 Q: Q,
88758875 decoded31: u1 = 0b0,
88768876 };
......@@ -8884,7 +8884,7 @@ pub const Instruction = packed union {
88848884 decoded17: u5 = 0b10000,
88858885 size: Size,
88868886 decoded24: u5 = 0b01110,
8887 U: std.builtin.Signedness = .signed,
8887 U: std.lang.Signedness = .signed,
88888888 Q: Q,
88898889 decoded31: u1 = 0b0,
88908890 };
......@@ -8898,7 +8898,7 @@ pub const Instruction = packed union {
88988898 decoded17: u5 = 0b10000,
88998899 size: Size,
89008900 decoded24: u5 = 0b01110,
8901 U: std.builtin.Signedness = .signed,
8901 U: std.lang.Signedness = .signed,
89028902 Q: Q,
89038903 decoded31: u1 = 0b0,
89048904 };
......@@ -8912,7 +8912,7 @@ pub const Instruction = packed union {
89128912 decoded17: u5 = 0b10000,
89138913 size: Size,
89148914 decoded24: u5 = 0b01110,
8915 U: std.builtin.Signedness = .signed,
8915 U: std.lang.Signedness = .signed,
89168916 Q: Q,
89178917 decoded31: u1 = 0b0,
89188918 };
......@@ -8926,7 +8926,7 @@ pub const Instruction = packed union {
89268926 decoded17: u5 = 0b10000,
89278927 size: Size,
89288928 decoded24: u5 = 0b01110,
8929 U: std.builtin.Signedness = .signed,
8929 U: std.lang.Signedness = .signed,
89308930 Q: Q,
89318931 decoded31: u1 = 0b0,
89328932 };
......@@ -8941,7 +8941,7 @@ pub const Instruction = packed union {
89418941 sz: Sz,
89428942 o2: u1 = 0b0,
89438943 decoded24: u5 = 0b01110,
8944 U: std.builtin.Signedness = .signed,
8944 U: std.lang.Signedness = .signed,
89458945 Q: Q,
89468946 decoded31: u1 = 0b0,
89478947 };
......@@ -8956,7 +8956,7 @@ pub const Instruction = packed union {
89568956 sz: Sz,
89578957 o2: u1 = 0b0,
89588958 decoded24: u5 = 0b01110,
8959 U: std.builtin.Signedness = .signed,
8959 U: std.lang.Signedness = .signed,
89608960 Q: Q,
89618961 decoded31: u1 = 0b0,
89628962 };
......@@ -8971,7 +8971,7 @@ pub const Instruction = packed union {
89718971 sz: Sz,
89728972 o2: u1 = 0b0,
89738973 decoded24: u5 = 0b01110,
8974 U: std.builtin.Signedness = .signed,
8974 U: std.lang.Signedness = .signed,
89758975 Q: Q,
89768976 decoded31: u1 = 0b0,
89778977 };
......@@ -8986,7 +8986,7 @@ pub const Instruction = packed union {
89868986 sz: Sz,
89878987 o2: u1 = 0b0,
89888988 decoded24: u5 = 0b01110,
8989 U: std.builtin.Signedness = .signed,
8989 U: std.lang.Signedness = .signed,
89908990 Q: Q,
89918991 decoded31: u1 = 0b0,
89928992 };
......@@ -9001,7 +9001,7 @@ pub const Instruction = packed union {
90019001 sz: Sz,
90029002 o2: u1 = 0b0,
90039003 decoded24: u5 = 0b01110,
9004 U: std.builtin.Signedness = .signed,
9004 U: std.lang.Signedness = .signed,
90059005 Q: Q,
90069006 decoded31: u1 = 0b0,
90079007 };
......@@ -9016,7 +9016,7 @@ pub const Instruction = packed union {
90169016 sz: Sz,
90179017 o2: u1 = 0b0,
90189018 decoded24: u5 = 0b01110,
9019 U: std.builtin.Signedness = .signed,
9019 U: std.lang.Signedness = .signed,
90209020 Q: Q,
90219021 decoded31: u1 = 0b0,
90229022 };
......@@ -9031,7 +9031,7 @@ pub const Instruction = packed union {
90319031 sz: Sz,
90329032 o2: u1 = 0b1,
90339033 decoded24: u5 = 0b01110,
9034 U: std.builtin.Signedness = .signed,
9034 U: std.lang.Signedness = .signed,
90359035 Q: Q,
90369036 decoded31: u1 = 0b0,
90379037 };
......@@ -9046,7 +9046,7 @@ pub const Instruction = packed union {
90469046 sz: Sz,
90479047 o2: u1 = 0b1,
90489048 decoded24: u5 = 0b01110,
9049 U: std.builtin.Signedness = .signed,
9049 U: std.lang.Signedness = .signed,
90509050 Q: Q,
90519051 decoded31: u1 = 0b0,
90529052 };
......@@ -9061,7 +9061,7 @@ pub const Instruction = packed union {
90619061 sz: Sz,
90629062 o2: u1 = 0b1,
90639063 decoded24: u5 = 0b01110,
9064 U: std.builtin.Signedness = .signed,
9064 U: std.lang.Signedness = .signed,
90659065 Q: Q,
90669066 decoded31: u1 = 0b0,
90679067 };
......@@ -9076,7 +9076,7 @@ pub const Instruction = packed union {
90769076 sz: Sz,
90779077 o2: u1 = 0b1,
90789078 decoded24: u5 = 0b01110,
9079 U: std.builtin.Signedness = .signed,
9079 U: std.lang.Signedness = .signed,
90809080 Q: Q,
90819081 decoded31: u1 = 0b0,
90829082 };
......@@ -9091,7 +9091,7 @@ pub const Instruction = packed union {
90919091 sz: Sz,
90929092 o2: u1 = 0b1,
90939093 decoded24: u5 = 0b01110,
9094 U: std.builtin.Signedness = .signed,
9094 U: std.lang.Signedness = .signed,
90959095 Q: Q,
90969096 decoded31: u1 = 0b0,
90979097 };
......@@ -9106,7 +9106,7 @@ pub const Instruction = packed union {
91069106 sz: Sz,
91079107 o2: u1 = 0b1,
91089108 decoded24: u5 = 0b01110,
9109 U: std.builtin.Signedness = .signed,
9109 U: std.lang.Signedness = .signed,
91109110 Q: Q,
91119111 decoded31: u1 = 0b0,
91129112 };
......@@ -9121,7 +9121,7 @@ pub const Instruction = packed union {
91219121 sz: Sz,
91229122 o2: u1 = 0b1,
91239123 decoded24: u5 = 0b01110,
9124 U: std.builtin.Signedness = .signed,
9124 U: std.lang.Signedness = .signed,
91259125 Q: Q,
91269126 decoded31: u1 = 0b0,
91279127 };
......@@ -9136,7 +9136,7 @@ pub const Instruction = packed union {
91369136 sz: Sz,
91379137 o2: u1 = 0b1,
91389138 decoded24: u5 = 0b01110,
9139 U: std.builtin.Signedness = .signed,
9139 U: std.lang.Signedness = .signed,
91409140 Q: Q,
91419141 decoded31: u1 = 0b0,
91429142 };
......@@ -9151,7 +9151,7 @@ pub const Instruction = packed union {
91519151 sz: Sz,
91529152 o2: u1 = 0b1,
91539153 decoded24: u5 = 0b01110,
9154 U: std.builtin.Signedness = .signed,
9154 U: std.lang.Signedness = .signed,
91559155 Q: Q,
91569156 decoded31: u1 = 0b0,
91579157 };
......@@ -9165,7 +9165,7 @@ pub const Instruction = packed union {
91659165 decoded17: u5 = 0b10000,
91669166 size: Size,
91679167 decoded24: u5 = 0b01110,
9168 U: std.builtin.Signedness = .unsigned,
9168 U: std.lang.Signedness = .unsigned,
91699169 Q: Q,
91709170 decoded31: u1 = 0b0,
91719171 };
......@@ -9179,7 +9179,7 @@ pub const Instruction = packed union {
91799179 decoded17: u5 = 0b10000,
91809180 size: Size,
91819181 decoded24: u5 = 0b01110,
9182 U: std.builtin.Signedness = .unsigned,
9182 U: std.lang.Signedness = .unsigned,
91839183 Q: Q,
91849184 decoded31: u1 = 0b0,
91859185 };
......@@ -9193,7 +9193,7 @@ pub const Instruction = packed union {
91939193 decoded17: u5 = 0b10000,
91949194 size: Size,
91959195 decoded24: u5 = 0b01110,
9196 U: std.builtin.Signedness = .unsigned,
9196 U: std.lang.Signedness = .unsigned,
91979197 Q: Q,
91989198 decoded31: u1 = 0b0,
91999199 };
......@@ -9207,7 +9207,7 @@ pub const Instruction = packed union {
92079207 decoded17: u5 = 0b10000,
92089208 size: Size,
92099209 decoded24: u5 = 0b01110,
9210 U: std.builtin.Signedness = .unsigned,
9210 U: std.lang.Signedness = .unsigned,
92119211 Q: Q,
92129212 decoded31: u1 = 0b0,
92139213 };
......@@ -9221,7 +9221,7 @@ pub const Instruction = packed union {
92219221 decoded17: u5 = 0b10000,
92229222 size: Size,
92239223 decoded24: u5 = 0b01110,
9224 U: std.builtin.Signedness = .unsigned,
9224 U: std.lang.Signedness = .unsigned,
92259225 Q: Q,
92269226 decoded31: u1 = 0b0,
92279227 };
......@@ -9235,7 +9235,7 @@ pub const Instruction = packed union {
92359235 decoded17: u5 = 0b10000,
92369236 size: Size,
92379237 decoded24: u5 = 0b01110,
9238 U: std.builtin.Signedness = .unsigned,
9238 U: std.lang.Signedness = .unsigned,
92399239 Q: Q,
92409240 decoded31: u1 = 0b0,
92419241 };
......@@ -9249,7 +9249,7 @@ pub const Instruction = packed union {
92499249 decoded17: u5 = 0b10000,
92509250 size: Size,
92519251 decoded24: u5 = 0b01110,
9252 U: std.builtin.Signedness = .unsigned,
9252 U: std.lang.Signedness = .unsigned,
92539253 Q: Q,
92549254 decoded31: u1 = 0b0,
92559255 };
......@@ -9264,7 +9264,7 @@ pub const Instruction = packed union {
92649264 sz: Sz,
92659265 o2: u1 = 0b0,
92669266 decoded24: u5 = 0b01110,
9267 U: std.builtin.Signedness = .unsigned,
9267 U: std.lang.Signedness = .unsigned,
92689268 Q: Q,
92699269 decoded31: u1 = 0b0,
92709270 };
......@@ -9279,7 +9279,7 @@ pub const Instruction = packed union {
92799279 sz: Sz,
92809280 o2: u1 = 0b0,
92819281 decoded24: u5 = 0b01110,
9282 U: std.builtin.Signedness = .unsigned,
9282 U: std.lang.Signedness = .unsigned,
92839283 Q: Q,
92849284 decoded31: u1 = 0b0,
92859285 };
......@@ -9294,7 +9294,7 @@ pub const Instruction = packed union {
92949294 sz: Sz,
92959295 o2: u1 = 0b0,
92969296 decoded24: u5 = 0b01110,
9297 U: std.builtin.Signedness = .unsigned,
9297 U: std.lang.Signedness = .unsigned,
92989298 Q: Q,
92999299 decoded31: u1 = 0b0,
93009300 };
......@@ -9309,7 +9309,7 @@ pub const Instruction = packed union {
93099309 sz: Sz,
93109310 o2: u1 = 0b0,
93119311 decoded24: u5 = 0b01110,
9312 U: std.builtin.Signedness = .unsigned,
9312 U: std.lang.Signedness = .unsigned,
93139313 Q: Q,
93149314 decoded31: u1 = 0b0,
93159315 };
......@@ -9324,7 +9324,7 @@ pub const Instruction = packed union {
93249324 sz: Sz,
93259325 o2: u1 = 0b0,
93269326 decoded24: u5 = 0b01110,
9327 U: std.builtin.Signedness = .unsigned,
9327 U: std.lang.Signedness = .unsigned,
93289328 Q: Q,
93299329 decoded31: u1 = 0b0,
93309330 };
......@@ -9339,7 +9339,7 @@ pub const Instruction = packed union {
93399339 sz: Sz,
93409340 o2: u1 = 0b0,
93419341 decoded24: u5 = 0b01110,
9342 U: std.builtin.Signedness = .unsigned,
9342 U: std.lang.Signedness = .unsigned,
93439343 Q: Q,
93449344 decoded31: u1 = 0b0,
93459345 };
......@@ -9354,7 +9354,7 @@ pub const Instruction = packed union {
93549354 sz: Sz,
93559355 o2: u1 = 0b0,
93569356 decoded24: u5 = 0b01110,
9357 U: std.builtin.Signedness = .unsigned,
9357 U: std.lang.Signedness = .unsigned,
93589358 Q: Q,
93599359 decoded31: u1 = 0b0,
93609360 };
......@@ -9368,7 +9368,7 @@ pub const Instruction = packed union {
93689368 decoded17: u5 = 0b10000,
93699369 size: Size = .byte,
93709370 decoded24: u5 = 0b01110,
9371 U: std.builtin.Signedness = .unsigned,
9371 U: std.lang.Signedness = .unsigned,
93729372 Q: Q,
93739373 decoded31: u1 = 0b0,
93749374 };
......@@ -9383,7 +9383,7 @@ pub const Instruction = packed union {
93839383 sz: Sz,
93849384 o2: u1 = 0b1,
93859385 decoded24: u5 = 0b01110,
9386 U: std.builtin.Signedness = .unsigned,
9386 U: std.lang.Signedness = .unsigned,
93879387 Q: Q,
93889388 decoded31: u1 = 0b0,
93899389 };
......@@ -9398,7 +9398,7 @@ pub const Instruction = packed union {
93989398 sz: Sz,
93999399 o2: u1 = 0b1,
94009400 decoded24: u5 = 0b01110,
9401 U: std.builtin.Signedness = .unsigned,
9401 U: std.lang.Signedness = .unsigned,
94029402 Q: Q,
94039403 decoded31: u1 = 0b0,
94049404 };
......@@ -9413,7 +9413,7 @@ pub const Instruction = packed union {
94139413 sz: Sz,
94149414 o2: u1 = 0b1,
94159415 decoded24: u5 = 0b01110,
9416 U: std.builtin.Signedness = .unsigned,
9416 U: std.lang.Signedness = .unsigned,
94179417 Q: Q,
94189418 decoded31: u1 = 0b0,
94199419 };
......@@ -9428,7 +9428,7 @@ pub const Instruction = packed union {
94289428 sz: Sz,
94299429 o2: u1 = 0b1,
94309430 decoded24: u5 = 0b01110,
9431 U: std.builtin.Signedness = .unsigned,
9431 U: std.lang.Signedness = .unsigned,
94329432 Q: Q,
94339433 decoded31: u1 = 0b0,
94349434 };
......@@ -9443,7 +9443,7 @@ pub const Instruction = packed union {
94439443 sz: Sz,
94449444 o2: u1 = 0b1,
94459445 decoded24: u5 = 0b01110,
9446 U: std.builtin.Signedness = .unsigned,
9446 U: std.lang.Signedness = .unsigned,
94479447 Q: Q,
94489448 decoded31: u1 = 0b0,
94499449 };
......@@ -9458,7 +9458,7 @@ pub const Instruction = packed union {
94589458 sz: Sz,
94599459 o2: u1 = 0b1,
94609460 decoded24: u5 = 0b01110,
9461 U: std.builtin.Signedness = .unsigned,
9461 U: std.lang.Signedness = .unsigned,
94629462 Q: Q,
94639463 decoded31: u1 = 0b0,
94649464 };
......@@ -9473,7 +9473,7 @@ pub const Instruction = packed union {
94739473 sz: Sz,
94749474 o2: u1 = 0b1,
94759475 decoded24: u5 = 0b01110,
9476 U: std.builtin.Signedness = .unsigned,
9476 U: std.lang.Signedness = .unsigned,
94779477 Q: Q,
94789478 decoded31: u1 = 0b0,
94799479 };
......@@ -9488,7 +9488,7 @@ pub const Instruction = packed union {
94889488 sz: Sz,
94899489 o2: u1 = 0b1,
94909490 decoded24: u5 = 0b01110,
9491 U: std.builtin.Signedness = .unsigned,
9491 U: std.lang.Signedness = .unsigned,
94929492 Q: Q,
94939493 decoded31: u1 = 0b0,
94949494 };
......@@ -9670,7 +9670,7 @@ pub const Instruction = packed union {
96709670 decoded17: u5 = 0b11000,
96719671 size: Size,
96729672 decoded24: u5 = 0b01110,
9673 U: std.builtin.Signedness,
9673 U: std.lang.Signedness,
96749674 Q: Q,
96759675 decoded31: u1 = 0b0,
96769676 };
......@@ -9684,7 +9684,7 @@ pub const Instruction = packed union {
96849684 decoded17: u5 = 0b11000,
96859685 size: Size,
96869686 decoded24: u5 = 0b01110,
9687 U: std.builtin.Signedness = .signed,
9687 U: std.lang.Signedness = .signed,
96889688 Q: Q,
96899689 decoded31: u1 = 0b0,
96909690 };
......@@ -9726,7 +9726,7 @@ pub const Instruction = packed union {
97269726 decoded21: u1 = 0b1,
97279727 size: Size,
97289728 decoded24: u5 = 0b01110,
9729 U: std.builtin.Signedness,
9729 U: std.lang.Signedness,
97309730 Q: Q,
97319731 decoded31: u1 = 0b0,
97329732 };
......@@ -9741,7 +9741,7 @@ pub const Instruction = packed union {
97419741 decoded21: u1 = 0b1,
97429742 size: Size,
97439743 decoded24: u5 = 0b01110,
9744 U: std.builtin.Signedness = .signed,
9744 U: std.lang.Signedness = .signed,
97459745 Q: Q,
97469746 decoded31: u1 = 0b0,
97479747 };
......@@ -9756,7 +9756,7 @@ pub const Instruction = packed union {
97569756 decoded21: u1 = 0b1,
97579757 size: Size = .byte,
97589758 decoded24: u5 = 0b01110,
9759 U: std.builtin.Signedness = .signed,
9759 U: std.lang.Signedness = .signed,
97609760 Q: Q,
97619761 decoded31: u1 = 0b0,
97629762 };
......@@ -9771,7 +9771,7 @@ pub const Instruction = packed union {
97719771 decoded21: u1 = 0b1,
97729772 size: Size = .half,
97739773 decoded24: u5 = 0b01110,
9774 U: std.builtin.Signedness = .signed,
9774 U: std.lang.Signedness = .signed,
97759775 Q: Q,
97769776 decoded31: u1 = 0b0,
97779777 };
......@@ -9786,7 +9786,7 @@ pub const Instruction = packed union {
97869786 decoded21: u1 = 0b1,
97879787 size: Size = .single,
97889788 decoded24: u5 = 0b01110,
9789 U: std.builtin.Signedness = .signed,
9789 U: std.lang.Signedness = .signed,
97909790 Q: Q,
97919791 decoded31: u1 = 0b0,
97929792 };
......@@ -9801,7 +9801,7 @@ pub const Instruction = packed union {
98019801 decoded21: u1 = 0b1,
98029802 size: Size = .double,
98039803 decoded24: u5 = 0b01110,
9804 U: std.builtin.Signedness = .signed,
9804 U: std.lang.Signedness = .signed,
98059805 Q: Q,
98069806 decoded31: u1 = 0b0,
98079807 };
......@@ -9816,7 +9816,7 @@ pub const Instruction = packed union {
98169816 decoded21: u1 = 0b1,
98179817 size: Size = .byte,
98189818 decoded24: u5 = 0b01110,
9819 U: std.builtin.Signedness = .unsigned,
9819 U: std.lang.Signedness = .unsigned,
98209820 Q: Q,
98219821 decoded31: u1 = 0b0,
98229822 };
......@@ -9831,7 +9831,7 @@ pub const Instruction = packed union {
98319831 decoded21: u1 = 0b1,
98329832 size: Size = .half,
98339833 decoded24: u5 = 0b01110,
9834 U: std.builtin.Signedness = .unsigned,
9834 U: std.lang.Signedness = .unsigned,
98359835 Q: Q,
98369836 decoded31: u1 = 0b0,
98379837 };
......@@ -9846,7 +9846,7 @@ pub const Instruction = packed union {
98469846 decoded21: u1 = 0b1,
98479847 size: Size = .single,
98489848 decoded24: u5 = 0b01110,
9849 U: std.builtin.Signedness = .unsigned,
9849 U: std.lang.Signedness = .unsigned,
98509850 Q: Q,
98519851 decoded31: u1 = 0b0,
98529852 };
......@@ -9861,7 +9861,7 @@ pub const Instruction = packed union {
98619861 decoded21: u1 = 0b1,
98629862 size: Size = .double,
98639863 decoded24: u5 = 0b01110,
9864 U: std.builtin.Signedness = .unsigned,
9864 U: std.lang.Signedness = .unsigned,
98659865 Q: Q,
98669866 decoded31: u1 = 0b0,
98679867 };
src/codegen/c.zig+7-7
......@@ -1997,7 +1997,7 @@ pub const DeclGen = struct {
19971997 .bits => {},
19981998 }
19991999
2000 const int_info: std.builtin.Type.Int = if (ty.isAbiInt(zcu)) ty.intInfo(zcu) else .{
2000 const int_info: std.lang.Type.Int = if (ty.isAbiInt(zcu)) ty.intInfo(zcu) else .{
20012001 .signedness = .unsigned,
20022002 .bits = @intCast(ty.bitSize(zcu)),
20032003 };
......@@ -3878,7 +3878,7 @@ fn airSlice(f: *Function, inst: Air.Inst.Index) !CValue {
38783878fn airCall(
38793879 f: *Function,
38803880 inst: Air.Inst.Index,
3881 modifier: std.builtin.CallModifier,
3881 modifier: std.lang.CallModifier,
38823882) !CValue {
38833883 const pt = f.dg.pt;
38843884 const zcu = pt.zcu;
......@@ -6911,7 +6911,7 @@ fn airCVaCopy(f: *Function, inst: Air.Inst.Index) !CValue {
69116911 return local;
69126912}
69136913
6914fn toMemoryOrder(order: std.builtin.AtomicOrder) [:0]const u8 {
6914fn toMemoryOrder(order: std.lang.AtomicOrder) [:0]const u8 {
69156915 return switch (order) {
69166916 // Note: unordered is actually even less atomic than relaxed
69176917 .unordered, .monotonic => "zig_memory_order_relaxed",
......@@ -6922,11 +6922,11 @@ fn toMemoryOrder(order: std.builtin.AtomicOrder) [:0]const u8 {
69226922 };
69236923}
69246924
6925fn writeMemoryOrder(w: *Writer, order: std.builtin.AtomicOrder) !void {
6925fn writeMemoryOrder(w: *Writer, order: std.lang.AtomicOrder) !void {
69266926 return w.writeAll(toMemoryOrder(order));
69276927}
69286928
6929fn toCallingConvention(cc: std.builtin.CallingConvention, zcu: *Zcu) ?[]const u8 {
6929fn toCallingConvention(cc: std.lang.CallingConvention, zcu: *Zcu) ?[]const u8 {
69306930 if (zcu.getTarget().cCallingConvention()) |ccc| {
69316931 if (cc.eql(ccc)) {
69326932 return null;
......@@ -7021,7 +7021,7 @@ fn toCallingConvention(cc: std.builtin.CallingConvention, zcu: *Zcu) ?[]const u8
70217021 };
70227022}
70237023
7024fn toAtomicRmwSuffix(order: std.builtin.AtomicRmwOp) []const u8 {
7024fn toAtomicRmwSuffix(order: std.lang.AtomicRmwOp) []const u8 {
70257025 return switch (order) {
70267026 .Xchg => "xchg",
70277027 .Add => "add",
......@@ -7044,7 +7044,7 @@ fn toCIntBits(zig_bits: u32) ?u32 {
70447044 return null;
70457045}
70467046
7047fn signAbbrev(signedness: std.builtin.Signedness) u8 {
7047fn signAbbrev(signedness: std.lang.Signedness) u8 {
70487048 return switch (signedness) {
70497049 .signed => 'i',
70507050 .unsigned => 'u',
src/codegen/c/type.zig+1-1
......@@ -512,7 +512,7 @@ pub const CType = union(enum) {
512512 },
513513 }
514514 }
515 fn classifyBitInt(signedness: std.builtin.Signedness, bits: u16, zcu: *const Zcu) IntClass {
515 fn classifyBitInt(signedness: std.lang.Signedness, bits: u16, zcu: *const Zcu) IntClass {
516516 const is_ez80 = zcu.getTarget().cpu.arch == .ez80;
517517 return switch (bits) {
518518 0 => .void,
src/codegen/llvm.zig+17-17
......@@ -500,7 +500,7 @@ const CodeModel = enum {
500500 large,
501501};
502502
503fn codeModel(model: std.builtin.CodeModel, target: *const std.Target) CodeModel {
503fn codeModel(model: std.lang.CodeModel, target: *const std.Target) CodeModel {
504504 // Roughly match Clang's mapping of GCC code models to LLVM code models.
505505 return switch (model) {
506506 .default => .default,
......@@ -556,7 +556,7 @@ pub const Object = struct {
556556 /// Same as `nav_map` but for UAVs (which are always global constants).
557557 uav_map: std.AutoHashMapUnmanaged(struct {
558558 val: InternPool.Index,
559 @"addrspace": std.builtin.AddressSpace,
559 @"addrspace": std.lang.AddressSpace,
560560 }, Builder.Variable.Index),
561561 /// Maps enum types to their corresponding LLVM functions for implementing the `tag_name` instruction.
562562 enum_tag_name_map: std.AutoHashMapUnmanaged(InternPool.Index, Builder.Function.Index),
......@@ -3986,7 +3986,7 @@ pub const Object = struct {
39863986 o: *Object,
39873987 /// Must not be `.none`.
39883988 @"align": InternPool.Alignment,
3989 @"addrspace": std.builtin.AddressSpace,
3989 @"addrspace": std.lang.AddressSpace,
39903990 ) Allocator.Error!Builder.Constant {
39913991 const addr: u64 = @"align".toByteUnits().?;
39923992 const llvm_usize = try o.lowerType(.usize);
......@@ -4000,7 +4000,7 @@ pub const Object = struct {
40004000 uav_val: InternPool.Index,
40014001 /// Must not be `.none`.
40024002 @"align": InternPool.Alignment,
4003 @"addrspace": std.builtin.AddressSpace,
4003 @"addrspace": std.lang.AddressSpace,
40044004 ) Allocator.Error!Builder.Constant {
40054005 assert(@"align" != .none);
40064006
......@@ -4383,20 +4383,20 @@ const CallingConventionInfo = struct {
43834383 inreg_param_count: u2 = 0,
43844384};
43854385
4386pub fn toLlvmCallConv(cc: std.builtin.CallingConvention, target: *const std.Target) ?CallingConventionInfo {
4386pub fn toLlvmCallConv(cc: std.lang.CallingConvention, target: *const std.Target) ?CallingConventionInfo {
43874387 const llvm_cc = toLlvmCallConvTag(cc, target) orelse return null;
43884388 const incoming_stack_alignment: ?u64, const register_params: u2 = switch (cc) {
43894389 inline else => |pl| switch (@TypeOf(pl)) {
43904390 void => .{ null, 0 },
4391 std.builtin.CallingConvention.ArcInterruptOptions,
4392 std.builtin.CallingConvention.ArmInterruptOptions,
4393 std.builtin.CallingConvention.RiscvInterruptOptions,
4394 std.builtin.CallingConvention.ShInterruptOptions,
4395 std.builtin.CallingConvention.MicroblazeInterruptOptions,
4396 std.builtin.CallingConvention.MipsInterruptOptions,
4397 std.builtin.CallingConvention.CommonOptions,
4391 std.lang.CallingConvention.ArcInterruptOptions,
4392 std.lang.CallingConvention.ArmInterruptOptions,
4393 std.lang.CallingConvention.RiscvInterruptOptions,
4394 std.lang.CallingConvention.ShInterruptOptions,
4395 std.lang.CallingConvention.MicroblazeInterruptOptions,
4396 std.lang.CallingConvention.MipsInterruptOptions,
4397 std.lang.CallingConvention.CommonOptions,
43984398 => .{ pl.incoming_stack_alignment, 0 },
4399 std.builtin.CallingConvention.X86RegparmOptions => .{ pl.incoming_stack_alignment, pl.register_params },
4399 std.lang.CallingConvention.X86RegparmOptions => .{ pl.incoming_stack_alignment, pl.register_params },
44004400 else => @compileError("TODO: toLlvmCallConv" ++ @tagName(pl)),
44014401 },
44024402 };
......@@ -4410,7 +4410,7 @@ pub fn toLlvmCallConv(cc: std.builtin.CallingConvention, target: *const std.Targ
44104410 .inreg_param_count = register_params,
44114411 };
44124412}
4413pub fn toLlvmCallConvTag(cc_tag: std.builtin.CallingConvention.Tag, target: *const std.Target) ?Builder.CallConv {
4413pub fn toLlvmCallConvTag(cc_tag: std.lang.CallingConvention.Tag, target: *const std.Target) ?Builder.CallConv {
44144414 if (target.cCallingConvention()) |default_c| {
44154415 if (cc_tag == default_c) {
44164416 return .ccc;
......@@ -4543,13 +4543,13 @@ pub fn toLlvmCallConvTag(cc_tag: std.builtin.CallingConvention.Tag, target: *con
45434543}
45444544
45454545/// Convert a zig-address space to an llvm address space.
4546pub fn toLlvmAddressSpace(address_space: std.builtin.AddressSpace, target: *const std.Target) Builder.AddrSpace {
4546pub fn toLlvmAddressSpace(address_space: std.lang.AddressSpace, target: *const std.Target) Builder.AddrSpace {
45474547 for (llvmAddrSpaceInfo(target)) |info| if (info.zig == address_space) return info.llvm;
45484548 unreachable;
45494549}
45504550
45514551const AddrSpaceInfo = struct {
4552 zig: ?std.builtin.AddressSpace,
4552 zig: ?std.lang.AddressSpace,
45534553 llvm: Builder.AddrSpace,
45544554 non_integral: bool = false,
45554555 size: ?u16 = null,
......@@ -4643,7 +4643,7 @@ fn llvmDefaultGlobalAddressSpace(target: *const std.Target) Builder.AddrSpace {
46434643
46444644/// Return the actual address space that a value should be stored in if its a global address space.
46454645/// When a value is placed in the resulting address space, it needs to be cast back into wanted_address_space.
4646fn toLlvmGlobalAddressSpace(wanted_address_space: std.builtin.AddressSpace, target: *const std.Target) Builder.AddrSpace {
4646fn toLlvmGlobalAddressSpace(wanted_address_space: std.lang.AddressSpace, target: *const std.Target) Builder.AddrSpace {
46474647 return switch (wanted_address_space) {
46484648 .generic => llvmDefaultGlobalAddressSpace(target),
46494649 else => |as| toLlvmAddressSpace(as, target),
src/codegen/llvm/FuncGen.zig+8-8
......@@ -567,7 +567,7 @@ const CallAttr = enum {
567567 AlwaysInline,
568568};
569569
570fn airCall(self: *FuncGen, inst: Air.Inst.Index, modifier: std.builtin.CallModifier) Allocator.Error!Builder.Value {
570fn airCall(self: *FuncGen, inst: Air.Inst.Index, modifier: std.lang.CallModifier) Allocator.Error!Builder.Value {
571571 const air_call = self.air.unwrapCall(inst);
572572 const args = air_call.args;
573573 const o = self.object;
......@@ -6017,14 +6017,14 @@ fn airPrefetch(self: *FuncGen, inst: Air.Inst.Index) Allocator.Error!Builder.Val
60176017 const o = self.object;
60186018 const prefetch = self.air.instructions.items(.data)[@intFromEnum(inst)].prefetch;
60196019
6020 comptime assert(@intFromEnum(std.builtin.PrefetchOptions.Rw.read) == 0);
6021 comptime assert(@intFromEnum(std.builtin.PrefetchOptions.Rw.write) == 1);
6020 comptime assert(@intFromEnum(std.lang.PrefetchOptions.Rw.read) == 0);
6021 comptime assert(@intFromEnum(std.lang.PrefetchOptions.Rw.write) == 1);
60226022
60236023 comptime assert(prefetch.locality >= 0);
60246024 comptime assert(prefetch.locality <= 3);
60256025
6026 comptime assert(@intFromEnum(std.builtin.PrefetchOptions.Cache.instruction) == 0);
6027 comptime assert(@intFromEnum(std.builtin.PrefetchOptions.Cache.data) == 1);
6026 comptime assert(@intFromEnum(std.lang.PrefetchOptions.Cache.instruction) == 0);
6027 comptime assert(@intFromEnum(std.lang.PrefetchOptions.Cache.data) == 1);
60286028
60296029 // LLVM fails during codegen of instruction cache prefetchs for these architectures.
60306030 // This is an LLVM bug as the prefetch intrinsic should be a noop if not supported
......@@ -7106,7 +7106,7 @@ fn lowerSystemVFnRetTy(o: *Object, fn_info: InternPool.Key.FuncType) Allocator.E
71067106/// has different ABI than regular integer types, and there is no currently no
71077107/// way to determine whether a Zig integer type is meant to represent e.g. `int`
71087108/// or `_BitInt(32)`.
7109pub fn ccAbiPromoteInt(cc: std.builtin.CallingConvention, zcu: *Zcu, ty: Type) ?std.builtin.Signedness {
7109pub fn ccAbiPromoteInt(cc: std.lang.CallingConvention, zcu: *Zcu, ty: Type) ?std.lang.Signedness {
71107110 switch (cc) {
71117111 .auto, .@"inline", .async => return null,
71127112 else => {},
......@@ -7379,7 +7379,7 @@ fn intrinsicsAllowed(scalar_ty: Type, target: *const std.Target) bool {
73797379 };
73807380}
73817381
7382fn toLlvmAtomicOrdering(atomic_order: std.builtin.AtomicOrder) Builder.AtomicOrdering {
7382fn toLlvmAtomicOrdering(atomic_order: std.lang.AtomicOrder) Builder.AtomicOrdering {
73837383 return switch (atomic_order) {
73847384 .unordered => .unordered,
73857385 .monotonic => .monotonic,
......@@ -7391,7 +7391,7 @@ fn toLlvmAtomicOrdering(atomic_order: std.builtin.AtomicOrder) Builder.AtomicOrd
73917391}
73927392
73937393fn toLlvmAtomicRmwBinOp(
7394 op: std.builtin.AtomicRmwOp,
7394 op: std.lang.AtomicRmwOp,
73957395 is_signed: bool,
73967396 is_float: bool,
73977397) Builder.Function.Instruction.AtomicRmw.Operation {
src/codegen/riscv64/CodeGen.zig+4-4
......@@ -1901,7 +1901,7 @@ fn splitType(func: *Func, ty: Type) ![2]Type {
19011901fn truncateRegister(func: *Func, ty: Type, reg: Register) !void {
19021902 const pt = func.pt;
19031903 const zcu = pt.zcu;
1904 const int_info = if (ty.isAbiInt(zcu)) ty.intInfo(zcu) else std.builtin.Type.Int{
1904 const int_info = if (ty.isAbiInt(zcu)) ty.intInfo(zcu) else std.lang.Type.Int{
19051905 .signedness = .unsigned,
19061906 .bits = @intCast(ty.bitSize(zcu)),
19071907 };
......@@ -4788,7 +4788,7 @@ fn airFrameAddress(func: *Func, inst: Air.Inst.Index) !void {
47884788 return func.finishAir(inst, dst_mcv, .{ .none, .none, .none });
47894789}
47904790
4791fn airCall(func: *Func, inst: Air.Inst.Index, modifier: std.builtin.CallModifier) !void {
4791fn airCall(func: *Func, inst: Air.Inst.Index, modifier: std.lang.CallModifier) !void {
47924792 if (modifier == .always_tail) return func.fail("TODO implement tail calls for riscv64", .{});
47934793 const call = func.air.unwrapCall(inst);
47944794 const arg_refs = call.args;
......@@ -7691,7 +7691,7 @@ fn airAtomicLoad(func: *Func, inst: Air.Inst.Index) !void {
76917691 const pt = func.pt;
76927692 const zcu = pt.zcu;
76937693 const atomic_load = func.air.instructions.items(.data)[@intFromEnum(inst)].atomic_load;
7694 const order: std.builtin.AtomicOrder = atomic_load.order;
7694 const order: std.lang.AtomicOrder = atomic_load.order;
76957695
76967696 const ptr_ty = func.typeOf(atomic_load.ptr);
76977697 const elem_ty = ptr_ty.childType(zcu);
......@@ -7737,7 +7737,7 @@ fn airAtomicLoad(func: *Func, inst: Air.Inst.Index) !void {
77377737 return func.finishAir(inst, result_mcv, .{ atomic_load.ptr, .none, .none });
77387738}
77397739
7740fn airAtomicStore(func: *Func, inst: Air.Inst.Index, order: std.builtin.AtomicOrder) !void {
7740fn airAtomicStore(func: *Func, inst: Air.Inst.Index, order: std.lang.AtomicOrder) !void {
77417741 const bin_op = func.air.instructions.items(.data)[@intFromEnum(inst)].bin_op;
77427742
77437743 const ptr_ty = func.typeOf(bin_op.lhs);
src/codegen/riscv64/Lower.zig+3-3
......@@ -1,12 +1,12 @@
11//! This file contains the functionality for lowering RISC-V MIR to Instructions
22
33pt: Zcu.PerThread,
4output_mode: std.builtin.OutputMode,
5link_mode: std.builtin.LinkMode,
4output_mode: std.lang.OutputMode,
5link_mode: std.lang.LinkMode,
66pic: bool,
77allocator: Allocator,
88mir: Mir,
9cc: std.builtin.CallingConvention,
9cc: std.lang.CallingConvention,
1010err_msg: ?*ErrorMsg = null,
1111src_loc: Zcu.LazySrcLoc,
1212result_insts_len: u8 = undefined,
src/codegen/sparc64/CodeGen.zig+3-3
......@@ -20,7 +20,7 @@ const Mir = @import("Mir.zig");
2020const Emit = @import("Emit.zig");
2121const Type = @import("../../Type.zig");
2222const CodeGenError = codegen.CodeGenError;
23const Endian = std.builtin.Endian;
23const Endian = std.lang.Endian;
2424const Alignment = InternPool.Alignment;
2525
2626const build_options = @import("build_options");
......@@ -1255,7 +1255,7 @@ fn airByteSwap(self: *Self, inst: Air.Inst.Index) !void {
12551255 return self.finishAir(inst, result, .{ ty_op.operand, .none, .none });
12561256}
12571257
1258fn airCall(self: *Self, inst: Air.Inst.Index, modifier: std.builtin.CallModifier) !void {
1258fn airCall(self: *Self, inst: Air.Inst.Index, modifier: std.lang.CallModifier) !void {
12591259 if (modifier == .always_tail) return self.fail("TODO implement tail calls for {}", .{self.target.cpu.arch});
12601260
12611261 const call = self.air.unwrapCall(inst);
......@@ -4702,7 +4702,7 @@ fn truncRegister(
47024702 self: *Self,
47034703 operand_reg: Register,
47044704 dest_reg: Register,
4705 int_signedness: std.builtin.Signedness,
4705 int_signedness: std.lang.Signedness,
47064706 int_bits: u16,
47074707) !void {
47084708 switch (int_bits) {
src/codegen/sparc64/Emit.zig+1-1
......@@ -2,7 +2,7 @@
22//! machine code
33
44const std = @import("std");
5const Endian = std.builtin.Endian;
5const Endian = std.lang.Endian;
66const assert = std.debug.assert;
77const link = @import("../../link.zig");
88const Zcu = @import("../../Zcu.zig");
src/codegen/spirv/Assembler.zig+2-2
......@@ -212,7 +212,7 @@ fn processTypeInstruction(ass: *Assembler) !AsmValue {
212212 .OpTypeVoid => try module.voidType(),
213213 .OpTypeBool => try module.boolType(),
214214 .OpTypeInt => blk: {
215 const signedness: std.builtin.Signedness = switch (operands[2].literal32) {
215 const signedness: std.lang.Signedness = switch (operands[2].literal32) {
216216 0 => .unsigned,
217217 1 => .signed,
218218 else => {
......@@ -766,7 +766,7 @@ fn parseContextDependentNumber(ass: *Assembler) !void {
766766 return ass.fail(tok.start, "cannot parse literal constant", .{});
767767}
768768
769fn parseContextDependentInt(ass: *Assembler, signedness: std.builtin.Signedness, width: u32) !void {
769fn parseContextDependentInt(ass: *Assembler, signedness: std.lang.Signedness, width: u32) !void {
770770 const gpa = ass.cg.module.gpa;
771771
772772 const tok = ass.currentToken();
src/codegen/spirv/CodeGen.zig+4-4
......@@ -1,7 +1,7 @@
11const std = @import("std");
22const Allocator = std.mem.Allocator;
33const Target = std.Target;
4const Signedness = std.builtin.Signedness;
4const Signedness = std.lang.Signedness;
55const assert = std.debug.assert;
66const log = std.log.scoped(.codegen);
77
......@@ -569,7 +569,7 @@ const ArithmeticTypeInfo = struct {
569569 /// Null if this type is a scalar, or the length of the vector otherwise.
570570 vector_len: ?u32,
571571 /// Whether the inner type is signed. Only relevant for integers.
572 signedness: std.builtin.Signedness,
572 signedness: std.lang.Signedness,
573573};
574574
575575fn arithmeticTypeInfo(cg: *CodeGen, ty: Type) ArithmeticTypeInfo {
......@@ -2251,7 +2251,7 @@ fn buildBinary(cg: *CodeGen, opcode: Opcode, lhs: Temporary, rhs: Temporary) !Te
22512251/// or OpIMul and s_mul_hi or u_mul_hi on OpenCL.
22522252fn buildWideMul(
22532253 cg: *CodeGen,
2254 signedness: std.builtin.Signedness,
2254 signedness: std.lang.Signedness,
22552255 lhs: Temporary,
22562256 rhs: Temporary,
22572257) !struct { Temporary, Temporary } {
......@@ -5976,7 +5976,7 @@ fn airAssembly(cg: *CodeGen, inst: Air.Inst.Index) !?Id {
59765976 return null;
59775977}
59785978
5979fn airCall(cg: *CodeGen, inst: Air.Inst.Index, modifier: std.builtin.CallModifier) !?Id {
5979fn airCall(cg: *CodeGen, inst: Air.Inst.Index, modifier: std.lang.CallModifier) !?Id {
59805980 _ = modifier;
59815981
59825982 const gpa = cg.module.gpa;
src/codegen/spirv/Module.zig+4-4
......@@ -54,8 +54,8 @@ cache: struct {
5454 bool_type: ?Id = null,
5555 void_type: ?Id = null,
5656 opaque_types: std.StringHashMapUnmanaged(Id) = .empty,
57 int_types: std.AutoHashMapUnmanaged(std.builtin.Type.Int, Id) = .empty,
58 float_types: std.AutoHashMapUnmanaged(std.builtin.Type.Float, Id) = .empty,
57 int_types: std.AutoHashMapUnmanaged(std.lang.Type.Int, Id) = .empty,
58 float_types: std.AutoHashMapUnmanaged(std.lang.Type.Float, Id) = .empty,
5959 vector_types: std.AutoHashMapUnmanaged(struct { Id, u32 }, Id) = .empty,
6060 array_types: std.AutoHashMapUnmanaged(struct { Id, Id }, Id) = .empty,
6161 struct_types: std.ArrayHashMapUnmanaged(StructType, Id, StructType.HashContext, true) = .empty,
......@@ -582,7 +582,7 @@ pub fn backingIntBits(module: *Module, bits: u16) struct { u16, bool } {
582582 return .{ std.mem.alignForward(u16, bits, big_int_bits), true };
583583}
584584
585pub fn intType(module: *Module, signedness: std.builtin.Signedness, bits: u16) !Id {
585pub fn intType(module: *Module, signedness: std.lang.Signedness, bits: u16) !Id {
586586 assert(bits > 0);
587587
588588 const target = module.zcu.getTarget();
......@@ -918,7 +918,7 @@ pub fn debugString(module: *Module, string: []const u8) !Id {
918918 return entry.value_ptr.*;
919919}
920920
921pub fn storageClass(module: *Module, as: std.builtin.AddressSpace) spec.StorageClass {
921pub fn storageClass(module: *Module, as: std.lang.AddressSpace) spec.StorageClass {
922922 const target = module.zcu.getTarget();
923923 return switch (as) {
924924 .generic => .function,
src/codegen/wasm/CodeGen.zig+4-4
......@@ -951,7 +951,7 @@ fn resolveCallingConventionValues(
951951}
952952
953953pub fn firstParamSRet(
954 cc: std.builtin.CallingConvention,
954 cc: std.lang.CallingConvention,
955955 return_type: Type,
956956 zcu: *const Zcu,
957957 target: *const std.Target,
......@@ -970,7 +970,7 @@ pub fn firstParamSRet(
970970
971971/// Lowers a Zig type and its value based on a given calling convention to ensure
972972/// it matches the ABI.
973fn lowerArg(cg: *CodeGen, cc: std.builtin.CallingConvention, ty: Type, value: WValue) !void {
973fn lowerArg(cg: *CodeGen, cc: std.lang.CallingConvention, ty: Type, value: WValue) !void {
974974 if (cc != .wasm_mvp) {
975975 return cg.lowerToStack(value);
976976 }
......@@ -1989,7 +1989,7 @@ fn airRetLoad(cg: *CodeGen, inst: Air.Inst.Index) InnerError!void {
19891989 return cg.finishAir(inst, .none, &.{un_op});
19901990}
19911991
1992fn airCall(cg: *CodeGen, inst: Air.Inst.Index, modifier: std.builtin.CallModifier) InnerError!void {
1992fn airCall(cg: *CodeGen, inst: Air.Inst.Index, modifier: std.lang.CallModifier) InnerError!void {
19931993 if (modifier == .always_tail) return cg.fail("TODO implement tail calls for wasm", .{});
19941994 const call = cg.air.unwrapCall(inst);
19951995 const args = call.args;
......@@ -7268,7 +7268,7 @@ fn airAtomicRmw(cg: *CodeGen, inst: Air.Inst.Index) InnerError!void {
72687268 const ptr = try cg.resolveInst(pl_op.operand);
72697269 const operand = try cg.resolveInst(extra.operand);
72707270 const ty = cg.typeOfIndex(inst);
7271 const op: std.builtin.AtomicRmwOp = extra.op();
7271 const op: std.lang.AtomicRmwOp = extra.op();
72727272
72737273 if (cg.useAtomicFeature()) {
72747274 const int_ty: IntType = .fromType(cg, ty);
src/codegen/x86_64/CodeGen.zig+15-15
......@@ -173952,7 +173952,7 @@ fn setFrameLoc(
173952173952 offset.* += self.frame_allocs.items(.abi_size)[frame_i];
173953173953}
173954173954
173955fn computeFrameLayout(self: *CodeGen, cc: std.builtin.CallingConvention.Tag) !FrameLayout {
173955fn computeFrameLayout(self: *CodeGen, cc: std.lang.CallingConvention.Tag) !FrameLayout {
173956173956 const frame_allocs_len = self.frame_allocs.len;
173957173957 try self.frame_locs.resize(self.gpa, frame_allocs_len);
173958173958 const stack_frame_order = try self.gpa.alloc(FrameIndex, frame_allocs_len - FrameIndex.named_count);
......@@ -174294,7 +174294,7 @@ pub fn spillEflagsIfOccupied(self: *CodeGen) !void {
174294174294 }
174295174295}
174296174296
174297pub fn spillCallerPreservedRegs(self: *CodeGen, cc: std.builtin.CallingConvention.Tag, ignore_reg: Register) !void {
174297pub fn spillCallerPreservedRegs(self: *CodeGen, cc: std.lang.CallingConvention.Tag, ignore_reg: Register) !void {
174298174298 switch (cc) {
174299174299 inline .auto, .x86_64_sysv, .x86_64_win => |tag| inline for (comptime abi.getCallerPreservedRegs(tag)) |reg|
174300174300 if (reg != ignore_reg) try self.register_manager.getKnownReg(reg, null),
......@@ -175917,7 +175917,7 @@ fn genLocalDebugInfo(cg: *CodeGen, air_tag: Air.Inst.Tag, ty: Type, mcv: MCValue
175917175917 };
175918175918}
175919175919
175920fn airCall(self: *CodeGen, inst: Air.Inst.Index, modifier: std.builtin.CallModifier, opts: CopyOptions) !void {
175920fn airCall(self: *CodeGen, inst: Air.Inst.Index, modifier: std.lang.CallModifier, opts: CopyOptions) !void {
175921175921 if (modifier == .always_tail) return self.fail("TODO implement tail calls for x86_64", .{});
175922175922
175923175923 const call = self.air.unwrapCall(inst);
......@@ -179498,7 +179498,7 @@ fn airBitCast(self: *CodeGen, inst: Air.Inst.Index) !void {
179498179498 );
179499179499 var offset = dst_limbs_len * 8;
179500179500 if (offset < abi_size) {
179501 const dst_signedness: std.builtin.Signedness = if (dst_ty.isAbiInt(zcu))
179501 const dst_signedness: std.lang.Signedness = if (dst_ty.isAbiInt(zcu))
179502179502 dst_ty.intInfo(zcu).signedness
179503179503 else
179504179504 .unsigned;
......@@ -179640,8 +179640,8 @@ fn atomicOp(
179640179640 ptr_ty: Type,
179641179641 val_ty: Type,
179642179642 unused: bool,
179643 rmw_op: ?std.builtin.AtomicRmwOp,
179644 order: std.builtin.AtomicOrder,
179643 rmw_op: ?std.lang.AtomicRmwOp,
179644 order: std.lang.AtomicOrder,
179645179645) InnerError!MCValue {
179646179646 const pt = self.pt;
179647179647 const zcu = pt.zcu;
......@@ -179714,7 +179714,7 @@ fn atomicOp(
179714179714 defer self.register_manager.unlockReg(dst_lock);
179715179715
179716179716 try self.genSetReg(dst_reg, val_ty, val_mcv, .{});
179717 if (rmw_op == std.builtin.AtomicRmwOp.Sub and mir_tag[1] == .xadd) {
179717 if (rmw_op == std.lang.AtomicRmwOp.Sub and mir_tag[1] == .xadd) {
179718179718 try self.genUnOpMir(.{ ._, .neg }, val_ty, dst_mcv);
179719179719 }
179720179720 try self.asmMemoryRegister(mir_tag, ptr_mem, registerAlias(dst_reg, val_abi_size));
......@@ -179898,7 +179898,7 @@ fn atomicOp(
179898179898 };
179899179899 const val_lo_mem = try val_mem_mcv.mem(self, .{ .size = .qword });
179900179900 const val_hi_mem = try val_mem_mcv.address().offset(8).deref().mem(self, .{ .size = .qword });
179901 if (rmw_op != std.builtin.AtomicRmwOp.Xchg) {
179901 if (rmw_op != std.lang.AtomicRmwOp.Xchg) {
179902179902 try self.asmRegisterRegister(.{ ._, .mov }, .rbx, .rax);
179903179903 try self.asmRegisterRegister(.{ ._, .mov }, .rcx, .rdx);
179904179904 }
......@@ -180033,7 +180033,7 @@ fn airAtomicLoad(self: *CodeGen, inst: Air.Inst.Index) !void {
180033180033 return self.finishAir(inst, result, .{ atomic_load.ptr, .none, .none });
180034180034}
180035180035
180036fn airAtomicStore(self: *CodeGen, inst: Air.Inst.Index, order: std.builtin.AtomicOrder) !void {
180036fn airAtomicStore(self: *CodeGen, inst: Air.Inst.Index, order: std.lang.AtomicOrder) !void {
180037180037 const bin_op = self.air.instructions.items(.data)[@intFromEnum(inst)].bin_op;
180038180038
180039180039 const ptr_ty = self.typeOf(bin_op.lhs);
......@@ -181813,7 +181813,7 @@ fn nonBoolScalarBitSize(cg: *CodeGen, ty: Type) u32 {
181813181813 };
181814181814}
181815181815
181816fn intInfo(cg: *CodeGen, ty: Type) ?std.builtin.Type.Int {
181816fn intInfo(cg: *CodeGen, ty: Type) ?std.lang.Type.Int {
181817181817 const zcu = cg.pt.zcu;
181818181818 const ip = &zcu.intern_pool;
181819181819 var ty_index = ty.ip_index;
......@@ -188528,7 +188528,7 @@ const Select = struct {
188528188528
188529188529 const ConstSpec = struct {
188530188530 ref: Select.Operand.Ref = .none,
188531 to_signedness: ?std.builtin.Signedness = null,
188531 to_signedness: ?std.lang.Signedness = null,
188532188532 vectorize_to: ?Memory.Size = null,
188533188533 };
188534188534
......@@ -188537,7 +188537,7 @@ const Select = struct {
188537188537 after: u2,
188538188538 at: u2,
188539188539
188540 fn tag(spec: CallConvRegSpec, cg: *const CodeGen) std.builtin.CallingConvention.Tag {
188540 fn tag(spec: CallConvRegSpec, cg: *const CodeGen) std.lang.CallingConvention.Tag {
188541188541 return switch (spec.cc) {
188542188542 .none => unreachable,
188543188543 .ccc => cg.target.cCallingConvention().?,
......@@ -188667,11 +188667,11 @@ const Select = struct {
188667188667 .smax_mem, .umin_mem => .bool_false,
188668188668 }) },
188669188669 else => {
188670 const scalar_info: std.builtin.Type.Int = cg.intInfo(scalar_ty) orelse .{
188670 const scalar_info: std.lang.Type.Int = cg.intInfo(scalar_ty) orelse .{
188671188671 .signedness = .signed,
188672188672 .bits = cg.floatBits(scalar_ty).?,
188673188673 };
188674 const res_scalar_info: std.builtin.Type.Int = .{
188674 const res_scalar_info: std.lang.Type.Int = .{
188675188675 .signedness = const_spec.to_signedness orelse scalar_info.signedness,
188676188676 .bits = switch (spec.kind) {
188677188677 else => scalar_info.bits,
......@@ -188739,7 +188739,7 @@ const Select = struct {
188739188739 .positive = undefined,
188740188740 };
188741188741 defer allocator.free(big_int.limbs);
188742 const signedness: std.builtin.Signedness = switch (spec.kind) {
188742 const signedness: std.lang.Signedness = switch (spec.kind) {
188743188743 else => unreachable,
188744188744 .slimit_delta_mem => .signed,
188745188745 .umax_delta_mem => .unsigned,
src/codegen/x86_64/Lower.zig+1-1
......@@ -3,7 +3,7 @@
33target: *const std.Target,
44allocator: std.mem.Allocator,
55mir: Mir,
6cc: std.builtin.CallingConvention,
6cc: std.lang.CallingConvention,
77err_msg: ?*Zcu.ErrorMsg = null,
88src_loc: Zcu.LazySrcLoc,
99result_insts_len: ResultInstIndex = undefined,
src/codegen/x86_64/Mir.zig+1-1
......@@ -1737,7 +1737,7 @@ pub const Inst = struct {
17371737 @typeInfo(Tag).@"enum".fields.len != 251)
17381738 {
17391739 const cond_src = (struct {
1740 fn src() std.builtin.SourceLocation {
1740 fn src() std.lang.SourceLocation {
17411741 return @src();
17421742 }
17431743 }).src();
src/codegen/x86_64/abi.zig+9-9
......@@ -478,7 +478,7 @@ pub const Win64 = struct {
478478 pub const c_abi_sse_return_regs = sse_avx_regs[0..1];
479479};
480480
481pub fn getCalleePreservedRegs(cc: std.builtin.CallingConvention.Tag) []const Register {
481pub fn getCalleePreservedRegs(cc: std.lang.CallingConvention.Tag) []const Register {
482482 return switch (cc) {
483483 .auto => zigcc.callee_preserved_regs,
484484 .x86_64_sysv => &SysV.callee_preserved_regs,
......@@ -487,7 +487,7 @@ pub fn getCalleePreservedRegs(cc: std.builtin.CallingConvention.Tag) []const Reg
487487 };
488488}
489489
490pub fn getCallerPreservedRegs(cc: std.builtin.CallingConvention.Tag) []const Register {
490pub fn getCallerPreservedRegs(cc: std.lang.CallingConvention.Tag) []const Register {
491491 return switch (cc) {
492492 .auto => zigcc.caller_preserved_regs,
493493 .x86_64_sysv => &SysV.caller_preserved_regs,
......@@ -496,7 +496,7 @@ pub fn getCallerPreservedRegs(cc: std.builtin.CallingConvention.Tag) []const Reg
496496 };
497497}
498498
499pub fn getCAbiIntParamRegs(cc: std.builtin.CallingConvention.Tag) []const Register {
499pub fn getCAbiIntParamRegs(cc: std.lang.CallingConvention.Tag) []const Register {
500500 return switch (cc) {
501501 .auto => zigcc.int_param_regs,
502502 .x86_64_sysv => &SysV.c_abi_int_param_regs,
......@@ -505,7 +505,7 @@ pub fn getCAbiIntParamRegs(cc: std.builtin.CallingConvention.Tag) []const Regist
505505 };
506506}
507507
508pub fn getCAbiX87ParamRegs(cc: std.builtin.CallingConvention.Tag) []const Register {
508pub fn getCAbiX87ParamRegs(cc: std.lang.CallingConvention.Tag) []const Register {
509509 return switch (cc) {
510510 .auto => zigcc.x87_param_regs,
511511 .x86_64_sysv => SysV.c_abi_x87_param_regs,
......@@ -514,7 +514,7 @@ pub fn getCAbiX87ParamRegs(cc: std.builtin.CallingConvention.Tag) []const Regist
514514 };
515515}
516516
517pub fn getCAbiSseParamRegs(cc: std.builtin.CallingConvention.Tag, target: *const std.Target) []const Register {
517pub fn getCAbiSseParamRegs(cc: std.lang.CallingConvention.Tag, target: *const std.Target) []const Register {
518518 return switch (cc) {
519519 .auto => switch (target.cpu.arch) {
520520 else => unreachable,
......@@ -527,7 +527,7 @@ pub fn getCAbiSseParamRegs(cc: std.builtin.CallingConvention.Tag, target: *const
527527 };
528528}
529529
530pub fn getCAbiIntReturnRegs(cc: std.builtin.CallingConvention.Tag) []const Register {
530pub fn getCAbiIntReturnRegs(cc: std.lang.CallingConvention.Tag) []const Register {
531531 return switch (cc) {
532532 .auto => zigcc.int_return_regs,
533533 .x86_64_sysv => &SysV.c_abi_int_return_regs,
......@@ -536,7 +536,7 @@ pub fn getCAbiIntReturnRegs(cc: std.builtin.CallingConvention.Tag) []const Regis
536536 };
537537}
538538
539pub fn getCAbiX87ReturnRegs(cc: std.builtin.CallingConvention.Tag) []const Register {
539pub fn getCAbiX87ReturnRegs(cc: std.lang.CallingConvention.Tag) []const Register {
540540 return switch (cc) {
541541 .auto => zigcc.x87_return_regs,
542542 .x86_64_sysv => SysV.c_abi_x87_return_regs,
......@@ -545,7 +545,7 @@ pub fn getCAbiX87ReturnRegs(cc: std.builtin.CallingConvention.Tag) []const Regis
545545 };
546546}
547547
548pub fn getCAbiSseReturnRegs(cc: std.builtin.CallingConvention.Tag) []const Register {
548pub fn getCAbiSseReturnRegs(cc: std.lang.CallingConvention.Tag) []const Register {
549549 return switch (cc) {
550550 .auto => zigcc.sse_return_regs,
551551 .x86_64_sysv => SysV.c_abi_sse_return_regs,
......@@ -554,7 +554,7 @@ pub fn getCAbiSseReturnRegs(cc: std.builtin.CallingConvention.Tag) []const Regis
554554 };
555555}
556556
557pub fn getCAbiLinkerScratchReg(cc: std.builtin.CallingConvention.Tag) Register {
557pub fn getCAbiLinkerScratchReg(cc: std.lang.CallingConvention.Tag) Register {
558558 return switch (cc) {
559559 .auto => zigcc.int_return_regs[zigcc.int_return_regs.len - 1],
560560 .x86_64_sysv => SysV.c_abi_int_return_regs[0],
src/codegen/x86_64/bits.zig+1-1
......@@ -106,7 +106,7 @@ pub const Condition = enum(u5) {
106106 }
107107
108108 pub fn fromCompareOperator(
109 signedness: std.builtin.Signedness,
109 signedness: std.lang.Signedness,
110110 op: std.math.CompareOperator,
111111 ) Condition {
112112 return switch (signedness) {
src/libs/freebsd.zig+1-1
......@@ -19,7 +19,7 @@ pub const CrtFile = enum {
1919 scrt1_o,
2020};
2121
22pub fn needsCrt0(output_mode: std.builtin.OutputMode) ?CrtFile {
22pub fn needsCrt0(output_mode: std.lang.OutputMode) ?CrtFile {
2323 // For shared libraries and PIC executables, we should actually link in a variant of crt1 that
2424 // is built with `-DSHARED` so that it calls `__cxa_finalize` in an ELF destructor. However, we
2525 // currently make no effort to respect `__cxa_finalize` on any other targets, so for now, we're
src/libs/glibc.zig+1-1
......@@ -1277,7 +1277,7 @@ fn buildSharedLib(
12771277 try comp.updateSubCompilation(sub_compilation, misc_task, prog_node);
12781278}
12791279
1280pub fn needsCrt0(output_mode: std.builtin.OutputMode) ?CrtFile {
1280pub fn needsCrt0(output_mode: std.lang.OutputMode) ?CrtFile {
12811281 return switch (output_mode) {
12821282 .Obj, .Lib => null,
12831283 .Exe => .scrt1_o,
src/libs/libcxx.zig+1-1
......@@ -324,7 +324,7 @@ pub fn buildLibCxxAbi(comp: *Compilation, prog_node: std.Progress.Node) BuildErr
324324 const strip = comp.compilerRtStrip();
325325 // See the `-fno-exceptions` logic for WASI.
326326 // The old 32-bit x86 variant of SEH doesn't use tables.
327 const unwind_tables: std.builtin.UnwindTables =
327 const unwind_tables: std.lang.UnwindTables =
328328 if (target.os.tag == .wasi or (target.cpu.arch == .x86 and target.os.tag == .windows)) .none else .async;
329329
330330 const config = Compilation.Config.resolve(.{
src/libs/libtsan.zig+2-2
......@@ -37,7 +37,7 @@ pub fn buildTsan(comp: *Compilation, prog_node: std.Progress.Node) BuildError!vo
3737 .watchos => if (target.abi == .simulator) "clang_rt.tsan_watchossim_dynamic" else "clang_rt.tsan_watchos_dynamic",
3838 else => "tsan",
3939 };
40 const link_mode: std.builtin.LinkMode = if (target.os.tag.isDarwin()) .dynamic else .static;
40 const link_mode: std.lang.LinkMode = if (target.os.tag.isDarwin()) .dynamic else .static;
4141 const output_mode = .Lib;
4242 const basename = try std.zig.binNameAlloc(arena, .{
4343 .root_name = root_name,
......@@ -48,7 +48,7 @@ pub fn buildTsan(comp: *Compilation, prog_node: std.Progress.Node) BuildError!vo
4848
4949 const optimize_mode = comp.compilerRtOptMode();
5050 const strip = comp.compilerRtStrip();
51 const unwind_tables: std.builtin.UnwindTables =
51 const unwind_tables: std.lang.UnwindTables =
5252 if (target.cpu.arch == .x86 and target.os.tag == .windows) .none else .async;
5353 const link_libcpp = target.os.tag.isDarwin();
5454
src/libs/libunwind.zig+1-1
......@@ -29,7 +29,7 @@ pub fn buildStaticLib(comp: *Compilation, prog_node: std.Progress.Node) BuildErr
2929 const io = comp.io;
3030 const output_mode = .Lib;
3131 const target = &comp.root_mod.resolved_target.result;
32 const unwind_tables: std.builtin.UnwindTables =
32 const unwind_tables: std.lang.UnwindTables =
3333 if (target.cpu.arch == .x86 and target.os.tag == .windows) .none else .async;
3434 const config = Compilation.Config.resolve(.{
3535 .output_mode = output_mode,
src/libs/mingw.zig+1-1
......@@ -37,7 +37,7 @@ pub fn buildCrtFile(comp: *Compilation, crt_file: CrtFile, prog_node: std.Progre
3737 const target = comp.getTarget();
3838
3939 // The old 32-bit x86 variant of SEH doesn't use tables.
40 const unwind_tables: std.builtin.UnwindTables = if (target.cpu.arch != .x86) .async else .none;
40 const unwind_tables: std.lang.UnwindTables = if (target.cpu.arch != .x86) .async else .none;
4141
4242 switch (crt_file) {
4343 .crt2_o => {
src/libs/musl.zig+2-2
......@@ -173,7 +173,7 @@ pub fn buildCrtFile(comp: *Compilation, in_crt_file: CrtFile, prog_node: std.Pro
173173 .libc_so => {
174174 const optimize_mode = comp.compilerRtOptMode();
175175 const strip = comp.compilerRtStrip();
176 const output_mode: std.builtin.OutputMode = .Lib;
176 const output_mode: std.lang.OutputMode = .Lib;
177177 const config = try Compilation.Config.resolve(.{
178178 .output_mode = output_mode,
179179 .link_mode = .dynamic,
......@@ -290,7 +290,7 @@ pub fn buildCrtFile(comp: *Compilation, in_crt_file: CrtFile, prog_node: std.Pro
290290 }
291291}
292292
293pub fn needsCrt0(output_mode: std.builtin.OutputMode, link_mode: std.builtin.LinkMode, pie: bool) ?CrtFile {
293pub fn needsCrt0(output_mode: std.lang.OutputMode, link_mode: std.lang.LinkMode, pie: bool) ?CrtFile {
294294 return switch (output_mode) {
295295 .Obj, .Lib => null,
296296 .Exe => switch (link_mode) {
src/libs/netbsd.zig+1-1
......@@ -19,7 +19,7 @@ pub const CrtFile = enum {
1919 scrt0_o,
2020};
2121
22pub fn needsCrt0(output_mode: std.builtin.OutputMode) ?CrtFile {
22pub fn needsCrt0(output_mode: std.lang.OutputMode) ?CrtFile {
2323 // For shared libraries and PIC executables, we should actually link in a variant of crt1 that
2424 // is built with `-DSHARED` so that it calls `__cxa_finalize` in an ELF destructor. However, we
2525 // currently make no effort to respect `__cxa_finalize` on any other targets, so for now, we're
src/libs/openbsd.zig+1-1
......@@ -20,7 +20,7 @@ pub const CrtFile = enum {
2020 scrt0_o,
2121};
2222
23pub fn needsCrt0(output_mode: std.builtin.OutputMode) ?CrtFile {
23pub fn needsCrt0(output_mode: std.lang.OutputMode) ?CrtFile {
2424 // https://github.com/ziglang/zig/issues/23574#issuecomment-2869089897
2525 return switch (output_mode) {
2626 .Obj, .Lib => null,
src/libs/wasi_libc.zig+2-2
......@@ -12,14 +12,14 @@ pub const CrtFile = enum {
1212 libc_a,
1313};
1414
15pub fn execModelCrtFile(wasi_exec_model: std.builtin.WasiExecModel) CrtFile {
15pub fn execModelCrtFile(wasi_exec_model: std.lang.WasiExecModel) CrtFile {
1616 return switch (wasi_exec_model) {
1717 .reactor => CrtFile.crt1_reactor_o,
1818 .command => CrtFile.crt1_command_o,
1919 };
2020}
2121
22pub fn execModelCrtFileFullName(wasi_exec_model: std.builtin.WasiExecModel) []const u8 {
22pub fn execModelCrtFileFullName(wasi_exec_model: std.lang.WasiExecModel) []const u8 {
2323 return switch (execModelCrtFile(wasi_exec_model)) {
2424 .crt1_reactor_o => "crt1-reactor.o",
2525 .crt1_command_o => "crt1-command.o",
src/link.zig+8-8
......@@ -1300,8 +1300,8 @@ pub const File = struct {
13001300 };
13011301
13021302 pub fn determinePermissions(
1303 output_mode: std.builtin.OutputMode,
1304 link_mode: std.builtin.LinkMode,
1303 output_mode: std.lang.OutputMode,
1304 link_mode: std.lang.LinkMode,
13051305 ) Io.File.Permissions {
13061306 // On common systems with a 0o022 umask, 0o777 will still result in a file created
13071307 // with 0o755 permissions, but it works appropriately if the system is configured
......@@ -1714,10 +1714,10 @@ pub const UnresolvedInput = union(enum) {
17141714 must_link: bool = false,
17151715 hidden: bool = false,
17161716 allow_so_scripts: bool = false,
1717 preferred_mode: std.builtin.LinkMode,
1717 preferred_mode: std.lang.LinkMode,
17181718 search_strategy: SearchStrategy,
17191719
1720 fn fallbackMode(q: Query) std.builtin.LinkMode {
1720 fn fallbackMode(q: Query) std.lang.LinkMode {
17211721 assert(q.search_strategy != .no_fallback);
17221722 return switch (q.preferred_mode) {
17231723 .dynamic => .static,
......@@ -1843,7 +1843,7 @@ pub fn resolveInputs(
18431843 name: []const u8,
18441844 strategy: UnresolvedInput.SearchStrategy,
18451845 checked_paths: []const u8,
1846 preferred_mode: std.builtin.LinkMode,
1846 preferred_mode: std.lang.LinkMode,
18471847 }) = .empty;
18481848
18491849 // Convert external system libs into a stack so that items can be
......@@ -2077,7 +2077,7 @@ fn resolveLibInput(
20772077 lib_directory: Directory,
20782078 name_query: UnresolvedInput.NameQuery,
20792079 target: *const std.Target,
2080 link_mode: std.builtin.LinkMode,
2080 link_mode: std.lang.LinkMode,
20812081 color: std.zig.Color,
20822082) Allocator.Error!ResolveLibInputResult {
20832083 try resolved_inputs.ensureUnusedCapacity(gpa, 1);
......@@ -2161,7 +2161,7 @@ fn finishResolveLibInput(
21612161 resolved_inputs: *std.ArrayList(Input),
21622162 path: Path,
21632163 file: Io.File,
2164 link_mode: std.builtin.LinkMode,
2164 link_mode: std.lang.LinkMode,
21652165 query: UnresolvedInput.Query,
21662166) ResolveLibInputResult {
21672167 switch (link_mode) {
......@@ -2237,7 +2237,7 @@ fn resolvePathInputLib(
22372237 ld_script_bytes: *std.ArrayList(u8),
22382238 target: *const std.Target,
22392239 pq: UnresolvedInput.PathQuery,
2240 link_mode: std.builtin.LinkMode,
2240 link_mode: std.lang.LinkMode,
22412241 color: std.zig.Color,
22422242) Allocator.Error!ResolveLibInputResult {
22432243 try resolved_inputs.ensureUnusedCapacity(gpa, 1);
src/link/Coff.zig+1-1
......@@ -1091,7 +1091,7 @@ fn computeNodeSectionOffset(coff: *Coff, ni: MappedFile.Node.Index) u32 {
10911091 }
10921092}
10931093
1094pub inline fn targetEndian(_: *const Coff) std.builtin.Endian {
1094pub inline fn targetEndian(_: *const Coff) std.lang.Endian {
10951095 return .little;
10961096}
10971097fn targetLoad(coff: *const Coff, ptr: anytype) @typeInfo(@TypeOf(ptr)).pointer.child {
src/link/Dwarf.zig+5-5
......@@ -22,7 +22,7 @@ const target_info = @import("../target.zig");
2222gpa: Allocator,
2323bin_file: *link.File,
2424format: DW.Format,
25endian: std.builtin.Endian,
25endian: std.lang.Endian,
2626address_size: AddressSize,
2727
2828const_pool: link.ConstPool,
......@@ -1963,7 +1963,7 @@ pub const WipNav = struct {
19631963 fn writer(counter: *ExprLocCounter) *Writer {
19641964 return &counter.dw.writer;
19651965 }
1966 fn endian(_: ExprLocCounter) std.builtin.Endian {
1966 fn endian(_: ExprLocCounter) std.lang.Endian {
19671967 return @import("builtin").cpu.arch.endian();
19681968 }
19691969 fn addrSym(counter: *ExprLocCounter, _: u32) Writer.Error!void {
......@@ -1984,7 +1984,7 @@ pub const WipNav = struct {
19841984 fn writer(ctx: @This()) *Writer {
19851985 return &ctx.wip_nav.debug_info.writer;
19861986 }
1987 fn endian(ctx: @This()) std.builtin.Endian {
1987 fn endian(ctx: @This()) std.lang.Endian {
19881988 return ctx.wip_nav.dwarf.endian;
19891989 }
19901990 fn addrSym(ctx: @This(), sym_index: u32) (UpdateError || Writer.Error)!void {
......@@ -2026,7 +2026,7 @@ pub const WipNav = struct {
20262026 fn writer(ctx: @This()) *Writer {
20272027 return &ctx.wip_nav.debug_frame.writer;
20282028 }
2029 fn endian(ctx: @This()) std.builtin.Endian {
2029 fn endian(ctx: @This()) std.lang.Endian {
20302030 return ctx.wip_nav.dwarf.endian;
20312031 }
20322032 fn addrSym(ctx: @This(), sym_index: u32) (UpdateError || Writer.Error)!void {
......@@ -4164,7 +4164,7 @@ fn updateConstInner(dwarf: *Dwarf, pt: Zcu.PerThread, debug_const_index: link.Co
41644164 try wip_nav.strpFmt("{f}", .{val.toType().fmt(pt)});
41654165 const cc: DW.CC = cc: {
41664166 if (zcu.getTarget().cCallingConvention()) |cc| {
4167 if (@as(std.builtin.CallingConvention.Tag, cc) == func_type.cc) {
4167 if (@as(std.lang.CallingConvention.Tag, cc) == func_type.cc) {
41684168 break :cc .normal;
41694169 }
41704170 }
src/link/Elf2.zig+1-1
......@@ -1697,7 +1697,7 @@ pub fn identData(elf: *const Elf) std.elf.DATA {
16971697 return @enumFromInt(elf.mf.memory_map.memory[std.elf.EI.DATA]);
16981698}
16991699
1700pub fn targetEndian(elf: *const Elf) std.builtin.Endian {
1700pub fn targetEndian(elf: *const Elf) std.lang.Endian {
17011701 return switch (elf.identData()) {
17021702 .NONE, _ => unreachable,
17031703 .@"2LSB" => .little,
src/link/Wasm.zig+4-4
......@@ -3882,7 +3882,7 @@ pub fn flush(
38823882
38833883fn defaultEntrySymbolName(
38843884 preloaded_strings: *const PreloadedStrings,
3885 wasi_exec_model: std.builtin.WasiExecModel,
3885 wasi_exec_model: std.lang.WasiExecModel,
38863886) String {
38873887 return switch (wasi_exec_model) {
38883888 .reactor => preloaded_strings._initialize,
......@@ -3962,7 +3962,7 @@ pub fn getExistingFuncType2(wasm: *const Wasm, params: []const std.wasm.Valtype,
39623962
39633963pub fn internFunctionType(
39643964 wasm: *Wasm,
3965 cc: std.builtin.CallingConvention,
3965 cc: std.lang.CallingConvention,
39663966 params: []const InternPool.Index,
39673967 return_type: Zcu.Type,
39683968 target: *const std.Target,
......@@ -3976,7 +3976,7 @@ pub fn internFunctionType(
39763976
39773977pub fn getExistingFunctionType(
39783978 wasm: *Wasm,
3979 cc: std.builtin.CallingConvention,
3979 cc: std.lang.CallingConvention,
39803980 params: []const InternPool.Index,
39813981 return_type: Zcu.Type,
39823982 target: *const std.Target,
......@@ -4210,7 +4210,7 @@ pub fn errorNameTableAddr(wasm: *Wasm) u32 {
42104210
42114211fn convertZcuFnType(
42124212 comp: *Compilation,
4213 cc: std.builtin.CallingConvention,
4213 cc: std.lang.CallingConvention,
42144214 params: []const InternPool.Index,
42154215 return_type: Zcu.Type,
42164216 target: *const std.Target,
src/main.zig+10-10
......@@ -766,7 +766,7 @@ const Emit = union(enum) {
766766};
767767
768768const ArgMode = union(enum) {
769 build: std.builtin.OutputMode,
769 build: std.lang.OutputMode,
770770 cc,
771771 cpp,
772772 translate_c,
......@@ -935,13 +935,13 @@ fn buildOutputType(
935935 var minor_subsystem_version: ?u16 = null;
936936 var mingw_unicode_entry_point: bool = false;
937937 var enable_link_snapshots: bool = false;
938 var debug_compiler_runtime_libs: ?std.builtin.OptimizeMode = null;
938 var debug_compiler_runtime_libs: ?std.lang.OptimizeMode = null;
939939 var install_name: ?[]const u8 = null;
940940 var hash_style: link.File.Lld.Elf.HashStyle = .both;
941941 var entitlements: ?[]const u8 = null;
942942 var pagezero_size: ?u64 = null;
943943 var lib_search_strategy: link.UnresolvedInput.SearchStrategy = .paths_first;
944 var lib_preferred_mode: std.builtin.LinkMode = .dynamic;
944 var lib_preferred_mode: std.lang.LinkMode = .dynamic;
945945 var headerpad_size: ?u32 = null;
946946 var headerpad_max_install_names: bool = false;
947947 var dead_strip_dylibs: bool = false;
......@@ -5754,7 +5754,7 @@ fn jitCmdInner(
57545754 const self_exe_path = process.executablePathAlloc(io, arena) catch |err|
57555755 fatal("unable to find self exe path: {t}", .{err});
57565756
5757 const optimize_mode: std.builtin.OptimizeMode = if (EnvVar.ZIG_DEBUG_CMD.isSet(environ_map))
5757 const optimize_mode: std.lang.OptimizeMode = if (EnvVar.ZIG_DEBUG_CMD.isSet(environ_map))
57585758 .Debug
57595759 else
57605760 .ReleaseFast;
......@@ -6265,8 +6265,8 @@ pub const ClangArgIterator = struct {
62656265 }
62666266};
62676267
6268fn parseCodeModel(arg: []const u8) std.builtin.CodeModel {
6269 return std.meta.stringToEnum(std.builtin.CodeModel, arg) orelse
6268fn parseCodeModel(arg: []const u8) std.lang.CodeModel {
6269 return std.meta.stringToEnum(std.lang.CodeModel, arg) orelse
62706270 fatal("unsupported machine code model: '{s}'", .{arg});
62716271}
62726272
......@@ -7669,13 +7669,13 @@ fn findTemplates(gpa: Allocator, arena: Allocator, io: Io) Templates {
76697669 };
76707670}
76717671
7672fn parseOptimizeMode(s: []const u8) std.builtin.OptimizeMode {
7673 return std.meta.stringToEnum(std.builtin.OptimizeMode, s) orelse
7672fn parseOptimizeMode(s: []const u8) std.lang.OptimizeMode {
7673 return std.meta.stringToEnum(std.lang.OptimizeMode, s) orelse
76747674 fatal("unrecognized optimization mode: '{s}'", .{s});
76757675}
76767676
7677fn parseWasiExecModel(s: []const u8) std.builtin.WasiExecModel {
7678 return std.meta.stringToEnum(std.builtin.WasiExecModel, s) orelse
7677fn parseWasiExecModel(s: []const u8) std.lang.WasiExecModel {
7678 return std.meta.stringToEnum(std.lang.WasiExecModel, s) orelse
76797679 fatal("expected [command|reactor] for -mexec-mode=[value], found '{s}'", .{s});
76807680}
76817681
src/print_zir.zig+1-1
......@@ -1340,7 +1340,7 @@ const Writer = struct {
13401340 if (extra.data.flags.ensure_result_used) {
13411341 try stream.writeAll("nodiscard ");
13421342 }
1343 try stream.print(".{s}, ", .{@tagName(@as(std.builtin.CallModifier, @enumFromInt(extra.data.flags.packed_modifier)))});
1343 try stream.print(".{s}, ", .{@tagName(@as(std.lang.CallModifier, @enumFromInt(extra.data.flags.packed_modifier)))});
13441344 switch (kind) {
13451345 .direct => try self.writeInstRef(stream, extra.data.callee),
13461346 .field => {
src/target.zig+15-15
......@@ -3,7 +3,7 @@ const std = @import("std");
33const assert = std.debug.assert;
44
55const Type = @import("Type.zig");
6const AddressSpace = std.builtin.AddressSpace;
6const AddressSpace = std.lang.AddressSpace;
77const Alignment = @import("InternPool.zig").Alignment;
88const Compilation = @import("Compilation.zig");
99const Feature = @import("Zcu.zig").Feature;
......@@ -31,7 +31,7 @@ pub fn canDynamicLink(target: *const std.Target) bool {
3131 };
3232}
3333
34pub fn libCNeedsLibUnwind(target: *const std.Target, link_mode: std.builtin.LinkMode) bool {
34pub fn libCNeedsLibUnwind(target: *const std.Target, link_mode: std.lang.LinkMode) bool {
3535 return target.isGnuLibC() and link_mode == .static;
3636}
3737
......@@ -119,7 +119,7 @@ pub fn useEmulatedTls(target: *const std.Target) bool {
119119 };
120120}
121121
122pub fn hasValgrindSupport(target: *const std.Target, backend: std.builtin.CompilerBackend) bool {
122pub fn hasValgrindSupport(target: *const std.Target, backend: std.lang.CompilerBackend) bool {
123123 // We can't currently output the necessary Valgrind client request assembly when using the C
124124 // backend and compiling with an MSVC-like compiler.
125125 const ofmt_c_msvc = (target.abi == .msvc or target.abi == .itanium) and target.ofmt == .c;
......@@ -265,7 +265,7 @@ pub fn hasLldSupport(ofmt: std.Target.ObjectFormat) bool {
265265 };
266266}
267267
268pub fn hasNewLinkerSupport(ofmt: std.Target.ObjectFormat, backend: std.builtin.CompilerBackend) bool {
268pub fn hasNewLinkerSupport(ofmt: std.Target.ObjectFormat, backend: std.lang.CompilerBackend) bool {
269269 return switch (ofmt) {
270270 .elf, .coff => switch (backend) {
271271 .stage2_x86_64 => true,
......@@ -299,7 +299,7 @@ pub fn selfHostedBackendIsAsRobustAsLlvm(target: *const std.Target) bool {
299299 return false;
300300}
301301
302pub fn supportsStackProbing(target: *const std.Target, backend: std.builtin.CompilerBackend) bool {
302pub fn supportsStackProbing(target: *const std.Target, backend: std.lang.CompilerBackend) bool {
303303 return switch (backend) {
304304 .stage2_aarch64, .stage2_x86_64 => true,
305305 .stage2_llvm => target.os.tag != .windows and target.os.tag != .uefi and
......@@ -308,7 +308,7 @@ pub fn supportsStackProbing(target: *const std.Target, backend: std.builtin.Comp
308308 };
309309}
310310
311pub fn supportsStackProtector(target: *const std.Target, backend: std.builtin.CompilerBackend) bool {
311pub fn supportsStackProtector(target: *const std.Target, backend: std.lang.CompilerBackend) bool {
312312 switch (target.os.tag) {
313313 .plan9 => return false,
314314 else => {},
......@@ -336,7 +336,7 @@ pub fn libcProvidesStackProtector(target: *const std.Target) bool {
336336
337337/// Returns true if `@returnAddress()` is supported by the target and has a
338338/// reasonably performant implementation for the requested optimization mode.
339pub fn supportsReturnAddress(target: *const std.Target, optimize: std.builtin.OptimizeMode) bool {
339pub fn supportsReturnAddress(target: *const std.Target, optimize: std.lang.OptimizeMode) bool {
340340 return switch (target.cpu.arch) {
341341 // Emscripten currently implements `emscripten_return_address()` by calling
342342 // out into JavaScript and parsing a stack trace, which introduces significant
......@@ -396,7 +396,7 @@ pub fn hasDebugInfo(target: *const std.Target) bool {
396396 };
397397}
398398
399pub fn defaultCompilerRtOptimizeMode(target: *const std.Target) std.builtin.OptimizeMode {
399pub fn defaultCompilerRtOptimizeMode(target: *const std.Target) std.lang.OptimizeMode {
400400 if (target.cpu.arch.isWasm() and target.os.tag == .freestanding) {
401401 return .ReleaseSmall;
402402 } else {
......@@ -437,7 +437,7 @@ pub fn canBuildLibUbsanRt(target: *const std.Target) enum { no, yes, llvm_only,
437437
438438/// Whether libzigc can fill-in the gaps of an existing libc
439439/// or *is* the libc of the target.
440pub fn wantsZigC(target: *const std.Target, link_mode: std.builtin.LinkMode) bool {
440pub fn wantsZigC(target: *const std.Target, link_mode: std.lang.LinkMode) bool {
441441 return (target.isMuslLibC() and link_mode == .static) or target.isWasiLibC() or target.isMinGW();
442442}
443443
......@@ -547,7 +547,7 @@ pub fn clangSupportsNoImplicitFloatArg(target: *const std.Target) bool {
547547 };
548548}
549549
550pub fn defaultUnwindTables(target: *const std.Target, libunwind: bool, libtsan: bool) std.builtin.UnwindTables {
550pub fn defaultUnwindTables(target: *const std.Target, libunwind: bool, libtsan: bool) std.lang.UnwindTables {
551551 if (target.os.tag == .windows) {
552552 // The old 32-bit x86 variant of SEH doesn't use tables.
553553 return if (target.cpu.arch != .x86) .async else .none;
......@@ -824,7 +824,7 @@ pub fn functionPointerMask(target: *const std.Target) ?u64 {
824824 null;
825825}
826826
827pub fn supportsTailCall(target: *const std.Target, backend: std.builtin.CompilerBackend) bool {
827pub fn supportsTailCall(target: *const std.Target, backend: std.lang.CompilerBackend) bool {
828828 switch (backend) {
829829 .stage2_llvm => return @import("codegen/llvm.zig").supportsTailCall(target),
830830 .stage2_c => return true,
......@@ -832,7 +832,7 @@ pub fn supportsTailCall(target: *const std.Target, backend: std.builtin.Compiler
832832 }
833833}
834834
835pub fn supportsThreads(target: *const std.Target, backend: std.builtin.CompilerBackend) bool {
835pub fn supportsThreads(target: *const std.Target, backend: std.lang.CompilerBackend) bool {
836836 _ = target;
837837 return switch (backend) {
838838 .stage2_aarch64 => false,
......@@ -880,7 +880,7 @@ pub fn compilerRtIntAbbrev(bits: u16) []const u8 {
880880 };
881881}
882882
883pub fn fnCallConvAllowsZigTypes(cc: std.builtin.CallingConvention) bool {
883pub fn fnCallConvAllowsZigTypes(cc: std.lang.CallingConvention) bool {
884884 return switch (cc) {
885885 .auto, .async, .@"inline" => true,
886886 // For now we want to authorize PTX kernel to use zig objects, even if
......@@ -891,7 +891,7 @@ pub fn fnCallConvAllowsZigTypes(cc: std.builtin.CallingConvention) bool {
891891 };
892892}
893893
894pub fn zigBackend(target: *const std.Target, use_llvm: bool) std.builtin.CompilerBackend {
894pub fn zigBackend(target: *const std.Target, use_llvm: bool) std.lang.CompilerBackend {
895895 if (use_llvm) return .stage2_llvm;
896896 if (target.ofmt == .c) return .stage2_c;
897897 return switch (target.cpu.arch) {
......@@ -908,7 +908,7 @@ pub fn zigBackend(target: *const std.Target, use_llvm: bool) std.builtin.Compile
908908 };
909909}
910910
911pub inline fn backendSupportsFeature(backend: std.builtin.CompilerBackend, comptime feature: Feature) bool {
911pub inline fn backendSupportsFeature(backend: std.lang.CompilerBackend, comptime feature: Feature) bool {
912912 return switch (feature) {
913913 .panic_fn => switch (backend) {
914914 .stage2_aarch64,
src/tracy.zig+2-2
......@@ -58,7 +58,7 @@ pub const Ctx = if (enable) ___tracy_c_zone_context else struct {
5858 }
5959};
6060
61pub inline fn trace(comptime src: std.builtin.SourceLocation) Ctx {
61pub inline fn trace(comptime src: std.lang.SourceLocation) Ctx {
6262 if (!enable) return .{};
6363
6464 const global = struct {
......@@ -78,7 +78,7 @@ pub inline fn trace(comptime src: std.builtin.SourceLocation) Ctx {
7878 }
7979}
8080
81pub inline fn traceNamed(comptime src: std.builtin.SourceLocation, comptime name: [:0]const u8) Ctx {
81pub inline fn traceNamed(comptime src: std.lang.SourceLocation, comptime name: [:0]const u8) Ctx {
8282 if (!enable) return .{};
8383
8484 const global = struct {