aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2022-12-12 15:32:37 +0200
committerVeikka Tuominen <git@vexu.eu>2022-12-13 12:52:21 +0200
commit7b2a936173165002105ba5e76bed69654e132fea (patch)
tree54a77e6d627b2cdec08b57d4402f35011fd064df /src
parent4832677c3bce61725c67306c4683921296abdff9 (diff)
downloadzig-7b2a936173165002105ba5e76bed69654e132fea.tar.gz
zig-7b2a936173165002105ba5e76bed69654e132fea.zip
remove `stack` option from `@call`
Diffstat (limited to 'src')
-rw-r--r--src/AstGen.zig6
-rw-r--r--src/Sema.zig126
-rw-r--r--src/TypedValue.zig2
-rw-r--r--src/Zir.zig12
-rw-r--r--src/arch/aarch64/CodeGen.zig2
-rw-r--r--src/arch/arm/CodeGen.zig2
-rw-r--r--src/arch/riscv64/CodeGen.zig2
-rw-r--r--src/arch/sparc64/CodeGen.zig2
-rw-r--r--src/arch/wasm/CodeGen.zig2
-rw-r--r--src/arch/x86_64/CodeGen.zig2
-rw-r--r--src/codegen/c.zig2
-rw-r--r--src/print_zir.zig4
-rw-r--r--src/type.zig44
-rw-r--r--src/value.zig10
14 files changed, 83 insertions, 135 deletions
diff --git a/src/AstGen.zig b/src/AstGen.zig
index 021990883a..8df3d56a88 100644
--- a/src/AstGen.zig
+++ b/src/AstGen.zig
@@ -8297,11 +8297,11 @@ fn builtinCall(
return rvalue(gz, ri, result, node);
},
.call => {
- const options = try comptimeExpr(gz, scope, .{ .rl = .{ .ty = .call_options_type } }, params[0]);
+ const modifier = try comptimeExpr(gz, scope, .{ .rl = .{ .coerced_ty = .modifier_type } }, params[0]);
const callee = try calleeExpr(gz, scope, params[1]);
const args = try expr(gz, scope, .{ .rl = .none }, params[2]);
const result = try gz.addPlNode(.builtin_call, node, Zir.Inst.BuiltinCall{
- .options = options,
+ .modifier = modifier,
.callee = callee,
.args = args,
.flags = .{
@@ -8674,7 +8674,7 @@ fn callExpr(
const astgen = gz.astgen;
const callee = try calleeExpr(gz, scope, call.ast.fn_expr);
- const modifier: std.builtin.CallOptions.Modifier = blk: {
+ const modifier: std.builtin.CallModifier = blk: {
if (gz.force_comptime) {
break :blk .compile_time;
}
diff --git a/src/Sema.zig b/src/Sema.zig
index 3bad0b2b5f..885cdeb277 100644
--- a/src/Sema.zig
+++ b/src/Sema.zig
@@ -5986,7 +5986,7 @@ fn zirCall(
const extra = sema.code.extraData(Zir.Inst.Call, inst_data.payload_index);
const args_len = extra.data.flags.args_len;
- const modifier = @intToEnum(std.builtin.CallOptions.Modifier, extra.data.flags.packed_modifier);
+ const modifier = @intToEnum(std.builtin.CallModifier, extra.data.flags.packed_modifier);
const ensure_result_used = extra.data.flags.ensure_result_used;
const pop_error_return_trace = extra.data.flags.pop_error_return_trace;
@@ -6222,7 +6222,7 @@ fn analyzeCall(
func: Air.Inst.Ref,
func_src: LazySrcLoc,
call_src: LazySrcLoc,
- modifier: std.builtin.CallOptions.Modifier,
+ modifier: std.builtin.CallModifier,
ensure_result_used: bool,
uncasted_args: []const Air.Inst.Ref,
bound_arg_src: ?LazySrcLoc,
@@ -20751,118 +20751,66 @@ fn zirMulAdd(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.
});
}
-fn resolveCallOptions(
- sema: *Sema,
- block: *Block,
- src: LazySrcLoc,
- zir_ref: Zir.Inst.Ref,
- is_comptime: bool,
- is_nosuspend: bool,
- func: Air.Inst.Ref,
- func_src: LazySrcLoc,
-) CompileError!std.builtin.CallOptions.Modifier {
- const call_options_ty = try sema.getBuiltinType("CallOptions");
- const air_ref = try sema.resolveInst(zir_ref);
- const options = try sema.coerce(block, call_options_ty, air_ref, src);
-
- const modifier_src = sema.maybeOptionsSrc(block, src, "modifier");
- const stack_src = sema.maybeOptionsSrc(block, src, "stack");
-
- const modifier = try sema.fieldVal(block, src, options, "modifier", modifier_src);
- const modifier_val = try sema.resolveConstValue(block, modifier_src, modifier, "call modifier must be comptime-known");
- const wanted_modifier = modifier_val.toEnum(std.builtin.CallOptions.Modifier);
+fn zirBuiltinCall(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref {
+ const tracy = trace(@src());
+ defer tracy.end();
- const stack = try sema.fieldVal(block, src, options, "stack", stack_src);
- const stack_val = try sema.resolveConstValue(block, stack_src, stack, "call stack value must be comptime-known");
+ const inst_data = sema.code.instructions.items(.data)[inst].pl_node;
+ const modifier_src: LazySrcLoc = .{ .node_offset_builtin_call_arg0 = inst_data.src_node };
+ const func_src: LazySrcLoc = .{ .node_offset_builtin_call_arg1 = inst_data.src_node };
+ const args_src: LazySrcLoc = .{ .node_offset_builtin_call_arg2 = inst_data.src_node };
+ const call_src = inst_data.src();
- if (!stack_val.isNull()) {
- return sema.fail(block, stack_src, "TODO: implement @call with stack", .{});
- }
+ const extra = sema.code.extraData(Zir.Inst.BuiltinCall, inst_data.payload_index).data;
+ var func = try sema.resolveInst(extra.callee);
- switch (wanted_modifier) {
+ const modifier_ty = try sema.getBuiltinType("CallModifier");
+ const air_ref = try sema.resolveInst(extra.modifier);
+ const modifier_ref = try sema.coerce(block, modifier_ty, air_ref, modifier_src);
+ const modifier_val = try sema.resolveConstValue(block, modifier_src, modifier_ref, "call modifier must be comptime-known");
+ var modifier = modifier_val.toEnum(std.builtin.CallModifier);
+ switch (modifier) {
// These can be upgraded to comptime or nosuspend calls.
.auto, .never_tail, .no_async => {
- if (is_comptime) {
- if (wanted_modifier == .never_tail) {
+ if (extra.flags.is_comptime) {
+ if (modifier == .never_tail) {
return sema.fail(block, modifier_src, "unable to perform 'never_tail' call at compile-time", .{});
}
- return .compile_time;
- }
- if (is_nosuspend) {
- return .no_async;
+ modifier = .compile_time;
+ } else if (extra.flags.is_nosuspend) {
+ modifier = .no_async;
}
- return wanted_modifier;
},
// These can be upgraded to comptime. nosuspend bit can be safely ignored.
.always_inline, .compile_time => {
_ = (try sema.resolveDefinedValue(block, func_src, func)) orelse {
- return sema.fail(block, func_src, "modifier '{s}' requires a comptime-known function", .{@tagName(wanted_modifier)});
+ return sema.fail(block, func_src, "modifier '{s}' requires a comptime-known function", .{@tagName(modifier)});
};
- if (is_comptime) {
- return .compile_time;
+ if (extra.flags.is_comptime) {
+ modifier = .compile_time;
}
- return wanted_modifier;
},
.always_tail => {
- if (is_comptime) {
- return .compile_time;
+ if (extra.flags.is_comptime) {
+ modifier = .compile_time;
}
- return wanted_modifier;
},
.async_kw => {
- if (is_nosuspend) {
+ if (extra.flags.is_nosuspend) {
return sema.fail(block, modifier_src, "modifier 'async_kw' cannot be used inside nosuspend block", .{});
}
- if (is_comptime) {
+ if (extra.flags.is_comptime) {
return sema.fail(block, modifier_src, "modifier 'async_kw' cannot be used in combination with comptime function call", .{});
}
- return wanted_modifier;
},
.never_inline => {
- if (is_comptime) {
+ if (extra.flags.is_comptime) {
return sema.fail(block, modifier_src, "unable to perform 'never_inline' call at compile-time", .{});
}
- return wanted_modifier;
},
}
-}
-
-fn zirBuiltinCall(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref {
- const tracy = trace(@src());
- defer tracy.end();
- const inst_data = sema.code.instructions.items(.data)[inst].pl_node;
- const options_src: LazySrcLoc = .{ .node_offset_builtin_call_arg0 = inst_data.src_node };
- const func_src: LazySrcLoc = .{ .node_offset_builtin_call_arg1 = inst_data.src_node };
- const args_src: LazySrcLoc = .{ .node_offset_builtin_call_arg2 = inst_data.src_node };
- const call_src = inst_data.src();
-
- const extra = sema.code.extraData(Zir.Inst.BuiltinCall, inst_data.payload_index).data;
- var func = try sema.resolveInst(extra.callee);
- const modifier = sema.resolveCallOptions(
- block,
- .unneeded,
- extra.options,
- extra.flags.is_comptime,
- extra.flags.is_nosuspend,
- func,
- func_src,
- ) catch |err| switch (err) {
- error.NeededSourceLocation => {
- _ = try sema.resolveCallOptions(
- block,
- options_src,
- extra.options,
- extra.flags.is_comptime,
- extra.flags.is_nosuspend,
- func,
- func_src,
- );
- return error.AnalysisFail;
- },
- else => |e| return e,
- };
const args = try sema.resolveInst(extra.args);
const args_ty = sema.typeOf(args);
@@ -29558,7 +29506,7 @@ pub fn resolveTypeRequiresComptime(sema: *Sema, ty: Type) CompileError!bool {
.address_space,
.float_mode,
.reduce_op,
- .call_options,
+ .modifier,
.prefetch_options,
.export_options,
.extern_options,
@@ -29823,7 +29771,7 @@ pub fn resolveTypeFields(sema: *Sema, ty: Type) CompileError!Type {
.address_space => return sema.getBuiltinType("AddressSpace"),
.float_mode => return sema.getBuiltinType("FloatMode"),
.reduce_op => return sema.getBuiltinType("ReduceOp"),
- .call_options => return sema.getBuiltinType("CallOptions"),
+ .modifier => return sema.getBuiltinType("CallModifier"),
.prefetch_options => return sema.getBuiltinType("PrefetchOptions"),
else => return ty,
@@ -30841,7 +30789,7 @@ pub fn typeHasOnePossibleValue(sema: *Sema, ty: Type) CompileError!?Value {
.address_space,
.float_mode,
.reduce_op,
- .call_options,
+ .modifier,
.prefetch_options,
.export_options,
.extern_options,
@@ -31164,7 +31112,7 @@ pub fn addType(sema: *Sema, ty: Type) !Air.Inst.Ref {
.address_space => return .address_space_type,
.float_mode => return .float_mode_type,
.reduce_op => return .reduce_op_type,
- .call_options => return .call_options_type,
+ .modifier => return .modifier_type,
.prefetch_options => return .prefetch_options_type,
.export_options => return .export_options_type,
.extern_options => return .extern_options_type,
@@ -31557,7 +31505,7 @@ pub fn typeRequiresComptime(sema: *Sema, ty: Type) CompileError!bool {
.address_space,
.float_mode,
.reduce_op,
- .call_options,
+ .modifier,
.prefetch_options,
.export_options,
.extern_options,
@@ -32387,7 +32335,7 @@ fn enumHasInt(
.address_space,
.float_mode,
.reduce_op,
- .call_options,
+ .modifier,
.prefetch_options,
.export_options,
.extern_options,
diff --git a/src/TypedValue.zig b/src/TypedValue.zig
index 3c1972c78d..805448d540 100644
--- a/src/TypedValue.zig
+++ b/src/TypedValue.zig
@@ -136,7 +136,7 @@ pub fn print(
.address_space_type => return writer.writeAll("std.builtin.AddressSpace"),
.float_mode_type => return writer.writeAll("std.builtin.FloatMode"),
.reduce_op_type => return writer.writeAll("std.builtin.ReduceOp"),
- .call_options_type => return writer.writeAll("std.builtin.CallOptions"),
+ .modifier_type => return writer.writeAll("std.builtin.CallModifier"),
.prefetch_options_type => return writer.writeAll("std.builtin.PrefetchOptions"),
.export_options_type => return writer.writeAll("std.builtin.ExportOptions"),
.extern_options_type => return writer.writeAll("std.builtin.ExternOptions"),
diff --git a/src/Zir.zig b/src/Zir.zig
index ed425ea73e..6e7164878c 100644
--- a/src/Zir.zig
+++ b/src/Zir.zig
@@ -2070,7 +2070,7 @@ pub const Inst = struct {
address_space_type,
float_mode_type,
reduce_op_type,
- call_options_type,
+ modifier_type,
prefetch_options_type,
export_options_type,
extern_options_type,
@@ -2345,9 +2345,9 @@ pub const Inst = struct {
.ty = Type.initTag(.type),
.val = Value.initTag(.reduce_op_type),
},
- .call_options_type = .{
+ .modifier_type = .{
.ty = Type.initTag(.type),
- .val = Value.initTag(.call_options_type),
+ .val = Value.initTag(.modifier_type),
},
.prefetch_options_type = .{
.ty = Type.initTag(.type),
@@ -2832,7 +2832,7 @@ pub const Inst = struct {
callee: Ref,
pub const Flags = packed struct {
- /// std.builtin.CallOptions.Modifier in packed form
+ /// std.builtin.CallModifier in packed form
pub const PackedModifier = u3;
pub const PackedArgsLen = u27;
@@ -2844,7 +2844,7 @@ pub const Inst = struct {
comptime {
if (@sizeOf(Flags) != 4 or @bitSizeOf(Flags) != 32)
@compileError("Layout of Call.Flags needs to be updated!");
- if (@bitSizeOf(std.builtin.CallOptions.Modifier) != @bitSizeOf(PackedModifier))
+ if (@bitSizeOf(std.builtin.CallModifier) != @bitSizeOf(PackedModifier))
@compileError("Call.Flags.PackedModifier needs to be updated!");
}
};
@@ -2860,7 +2860,7 @@ pub const Inst = struct {
// Note: Flags *must* come first so that unusedResultExpr
// can find it when it goes to modify them.
flags: Flags,
- options: Ref,
+ modifier: Ref,
callee: Ref,
args: Ref,
diff --git a/src/arch/aarch64/CodeGen.zig b/src/arch/aarch64/CodeGen.zig
index 2edc6cb7f9..e09664598a 100644
--- a/src/arch/aarch64/CodeGen.zig
+++ b/src/arch/aarch64/CodeGen.zig
@@ -4110,7 +4110,7 @@ fn airFence(self: *Self) !void {
//return self.finishAirBookkeeping();
}
-fn airCall(self: *Self, inst: Air.Inst.Index, modifier: std.builtin.CallOptions.Modifier) !void {
+fn airCall(self: *Self, inst: Air.Inst.Index, modifier: std.builtin.CallModifier) !void {
if (modifier == .always_tail) return self.fail("TODO implement tail calls for aarch64", .{});
const pl_op = self.air.instructions.items(.data)[inst].pl_op;
const callee = pl_op.operand;
diff --git a/src/arch/arm/CodeGen.zig b/src/arch/arm/CodeGen.zig
index 6125ef1914..8197d85b48 100644
--- a/src/arch/arm/CodeGen.zig
+++ b/src/arch/arm/CodeGen.zig
@@ -4097,7 +4097,7 @@ fn airFence(self: *Self) !void {
//return self.finishAirBookkeeping();
}
-fn airCall(self: *Self, inst: Air.Inst.Index, modifier: std.builtin.CallOptions.Modifier) !void {
+fn airCall(self: *Self, inst: Air.Inst.Index, modifier: std.builtin.CallModifier) !void {
if (modifier == .always_tail) return self.fail("TODO implement tail calls for arm", .{});
const pl_op = self.air.instructions.items(.data)[inst].pl_op;
const callee = pl_op.operand;
diff --git a/src/arch/riscv64/CodeGen.zig b/src/arch/riscv64/CodeGen.zig
index 6a54ffeea2..58661926bb 100644
--- a/src/arch/riscv64/CodeGen.zig
+++ b/src/arch/riscv64/CodeGen.zig
@@ -1672,7 +1672,7 @@ fn airFence(self: *Self) !void {
//return self.finishAirBookkeeping();
}
-fn airCall(self: *Self, inst: Air.Inst.Index, modifier: std.builtin.CallOptions.Modifier) !void {
+fn airCall(self: *Self, inst: Air.Inst.Index, modifier: std.builtin.CallModifier) !void {
if (modifier == .always_tail) return self.fail("TODO implement tail calls for riscv64", .{});
const pl_op = self.air.instructions.items(.data)[inst].pl_op;
const fn_ty = self.air.typeOf(pl_op.operand);
diff --git a/src/arch/sparc64/CodeGen.zig b/src/arch/sparc64/CodeGen.zig
index 604fd3e69f..6eac6ba4fc 100644
--- a/src/arch/sparc64/CodeGen.zig
+++ b/src/arch/sparc64/CodeGen.zig
@@ -1155,7 +1155,7 @@ fn airBreakpoint(self: *Self) !void {
return self.finishAirBookkeeping();
}
-fn airCall(self: *Self, inst: Air.Inst.Index, modifier: std.builtin.CallOptions.Modifier) !void {
+fn airCall(self: *Self, inst: Air.Inst.Index, modifier: std.builtin.CallModifier) !void {
if (modifier == .always_tail) return self.fail("TODO implement tail calls for {}", .{self.target.cpu.arch});
const pl_op = self.air.instructions.items(.data)[inst].pl_op;
diff --git a/src/arch/wasm/CodeGen.zig b/src/arch/wasm/CodeGen.zig
index faed432a38..8596016a24 100644
--- a/src/arch/wasm/CodeGen.zig
+++ b/src/arch/wasm/CodeGen.zig
@@ -2003,7 +2003,7 @@ fn airRetLoad(func: *CodeGen, inst: Air.Inst.Index) InnerError!void {
return func.finishAir(inst, .none, &.{un_op});
}
-fn airCall(func: *CodeGen, inst: Air.Inst.Index, modifier: std.builtin.CallOptions.Modifier) InnerError!void {
+fn airCall(func: *CodeGen, inst: Air.Inst.Index, modifier: std.builtin.CallModifier) InnerError!void {
if (modifier == .always_tail) return func.fail("TODO implement tail calls for wasm", .{});
const pl_op = func.air.instructions.items(.data)[inst].pl_op;
const extra = func.air.extraData(Air.Call, pl_op.payload);
diff --git a/src/arch/x86_64/CodeGen.zig b/src/arch/x86_64/CodeGen.zig
index cd36642b03..bfb60bf74a 100644
--- a/src/arch/x86_64/CodeGen.zig
+++ b/src/arch/x86_64/CodeGen.zig
@@ -3899,7 +3899,7 @@ fn airFence(self: *Self) !void {
//return self.finishAirBookkeeping();
}
-fn airCall(self: *Self, inst: Air.Inst.Index, modifier: std.builtin.CallOptions.Modifier) !void {
+fn airCall(self: *Self, inst: Air.Inst.Index, modifier: std.builtin.CallModifier) !void {
if (modifier == .always_tail) return self.fail("TODO implement tail calls for x86_64", .{});
const pl_op = self.air.instructions.items(.data)[inst].pl_op;
const callee = pl_op.operand;
diff --git a/src/codegen/c.zig b/src/codegen/c.zig
index b78c9e9b1a..55b9cd4b77 100644
--- a/src/codegen/c.zig
+++ b/src/codegen/c.zig
@@ -3874,7 +3874,7 @@ fn airSlice(f: *Function, inst: Air.Inst.Index) !CValue {
fn airCall(
f: *Function,
inst: Air.Inst.Index,
- modifier: std.builtin.CallOptions.Modifier,
+ modifier: std.builtin.CallModifier,
) !CValue {
// Not even allowed to call panic in a naked function.
if (f.object.dg.decl.ty.fnCallingConvention() == .Naked) return .none;
diff --git a/src/print_zir.zig b/src/print_zir.zig
index 542f0e977d..6dbaf51bc3 100644
--- a/src/print_zir.zig
+++ b/src/print_zir.zig
@@ -801,7 +801,7 @@ const Writer = struct {
try self.writeFlag(stream, "nosuspend ", extra.flags.is_nosuspend);
try self.writeFlag(stream, "comptime ", extra.flags.is_comptime);
- try self.writeInstRef(stream, extra.options);
+ try self.writeInstRef(stream, extra.modifier);
try stream.writeAll(", ");
try self.writeInstRef(stream, extra.callee);
try stream.writeAll(", ");
@@ -1170,7 +1170,7 @@ const Writer = struct {
if (extra.data.flags.ensure_result_used) {
try stream.writeAll("nodiscard ");
}
- try stream.print(".{s}, ", .{@tagName(@intToEnum(std.builtin.CallOptions.Modifier, extra.data.flags.packed_modifier))});
+ try stream.print(".{s}, ", .{@tagName(@intToEnum(std.builtin.CallModifier, extra.data.flags.packed_modifier))});
try self.writeInstRef(stream, extra.data.callee);
try stream.writeAll(", [");
diff --git a/src/type.zig b/src/type.zig
index e64f310d79..93e8c4b502 100644
--- a/src/type.zig
+++ b/src/type.zig
@@ -129,7 +129,6 @@ pub const Type = extern union {
.empty_struct,
.empty_struct_literal,
.@"struct",
- .call_options,
.prefetch_options,
.export_options,
.extern_options,
@@ -147,6 +146,7 @@ pub const Type = extern union {
.address_space,
.float_mode,
.reduce_op,
+ .modifier,
=> return .Enum,
.@"union",
@@ -885,7 +885,6 @@ pub const Type = extern union {
// we can't compare these based on tags because it wouldn't detect if,
// for example, a was resolved into .@"struct" but b was one of these tags.
- .call_options,
.prefetch_options,
.export_options,
.extern_options,
@@ -914,6 +913,7 @@ pub const Type = extern union {
.address_space,
.float_mode,
.reduce_op,
+ .modifier,
=> unreachable, // needed to resolve the type before now
.@"union", .union_safety_tagged, .union_tagged => {
@@ -1194,7 +1194,6 @@ pub const Type = extern union {
},
// we can't hash these based on tags because they wouldn't match the expanded version.
- .call_options,
.prefetch_options,
.export_options,
.extern_options,
@@ -1222,6 +1221,7 @@ pub const Type = extern union {
.address_space,
.float_mode,
.reduce_op,
+ .modifier,
=> unreachable, // needed to resolve the type before now
.@"union", .union_safety_tagged, .union_tagged => {
@@ -1333,7 +1333,7 @@ pub const Type = extern union {
.address_space,
.float_mode,
.reduce_op,
- .call_options,
+ .modifier,
.prefetch_options,
.export_options,
.extern_options,
@@ -1665,7 +1665,7 @@ pub const Type = extern union {
.address_space => return writer.writeAll("std.builtin.AddressSpace"),
.float_mode => return writer.writeAll("std.builtin.FloatMode"),
.reduce_op => return writer.writeAll("std.builtin.ReduceOp"),
- .call_options => return writer.writeAll("std.builtin.CallOptions"),
+ .modifier => return writer.writeAll("std.builtin.CallModifier"),
.prefetch_options => return writer.writeAll("std.builtin.PrefetchOptions"),
.export_options => return writer.writeAll("std.builtin.ExportOptions"),
.extern_options => return writer.writeAll("std.builtin.ExternOptions"),
@@ -1943,7 +1943,7 @@ pub const Type = extern union {
.address_space => unreachable,
.float_mode => unreachable,
.reduce_op => unreachable,
- .call_options => unreachable,
+ .modifier => unreachable,
.prefetch_options => unreachable,
.export_options => unreachable,
.extern_options => unreachable,
@@ -2311,7 +2311,7 @@ pub const Type = extern union {
.address_space => return Value.initTag(.address_space_type),
.float_mode => return Value.initTag(.float_mode_type),
.reduce_op => return Value.initTag(.reduce_op_type),
- .call_options => return Value.initTag(.call_options_type),
+ .modifier => return Value.initTag(.modifier_type),
.prefetch_options => return Value.initTag(.prefetch_options_type),
.export_options => return Value.initTag(.export_options_type),
.extern_options => return Value.initTag(.extern_options_type),
@@ -2385,7 +2385,7 @@ pub const Type = extern union {
.address_space,
.float_mode,
.reduce_op,
- .call_options,
+ .modifier,
.prefetch_options,
.export_options,
.extern_options,
@@ -2631,7 +2631,7 @@ pub const Type = extern union {
.address_space,
.float_mode,
.reduce_op,
- .call_options,
+ .modifier,
.prefetch_options,
.export_options,
.extern_options,
@@ -2873,7 +2873,7 @@ pub const Type = extern union {
.address_space,
.float_mode,
.reduce_op,
- .call_options,
+ .modifier,
.prefetch_options,
.export_options,
.extern_options,
@@ -3257,7 +3257,7 @@ pub const Type = extern union {
.inferred_alloc_mut => unreachable,
.var_args_param => unreachable,
.generic_poison => unreachable,
- .call_options => unreachable, // missing call to resolveTypeFields
+ .modifier => unreachable, // missing call to resolveTypeFields
.prefetch_options => unreachable, // missing call to resolveTypeFields
.export_options => unreachable, // missing call to resolveTypeFields
.extern_options => unreachable, // missing call to resolveTypeFields
@@ -3753,7 +3753,7 @@ pub const Type = extern union {
.address_space,
.float_mode,
.reduce_op,
- .call_options,
+ .modifier,
.prefetch_options,
.export_options,
.extern_options,
@@ -4279,7 +4279,7 @@ pub const Type = extern union {
.address_space,
.float_mode,
.reduce_op,
- .call_options,
+ .modifier,
.prefetch_options,
.export_options,
.extern_options,
@@ -4306,7 +4306,7 @@ pub const Type = extern union {
.address_space,
.float_mode,
.reduce_op,
- .call_options,
+ .modifier,
.prefetch_options,
.export_options,
.extern_options,
@@ -4990,7 +4990,7 @@ pub const Type = extern union {
.address_space,
.float_mode,
.reduce_op,
- .call_options,
+ .modifier,
.prefetch_options,
.export_options,
.extern_options,
@@ -5165,7 +5165,7 @@ pub const Type = extern union {
.address_space,
.float_mode,
.reduce_op,
- .call_options,
+ .modifier,
.prefetch_options,
.export_options,
.extern_options,
@@ -5483,7 +5483,7 @@ pub const Type = extern union {
.address_space,
.float_mode,
.reduce_op,
- .call_options,
+ .modifier,
.prefetch_options,
.export_options,
.extern_options,
@@ -5565,7 +5565,7 @@ pub const Type = extern union {
.address_space,
.float_mode,
.reduce_op,
- .call_options,
+ .modifier,
.prefetch_options,
.export_options,
.extern_options,
@@ -5878,7 +5878,7 @@ pub const Type = extern union {
.address_space,
.float_mode,
.reduce_op,
- .call_options,
+ .modifier,
.prefetch_options,
.export_options,
.extern_options,
@@ -5926,7 +5926,7 @@ pub const Type = extern union {
.address_space,
.float_mode,
.reduce_op,
- .call_options,
+ .modifier,
.prefetch_options,
.export_options,
.extern_options,
@@ -5991,7 +5991,7 @@ pub const Type = extern union {
address_space,
float_mode,
reduce_op,
- call_options,
+ modifier,
prefetch_options,
export_options,
extern_options,
@@ -6131,7 +6131,7 @@ pub const Type = extern union {
.address_space,
.float_mode,
.reduce_op,
- .call_options,
+ .modifier,
.prefetch_options,
.export_options,
.extern_options,
diff --git a/src/value.zig b/src/value.zig
index dc0b150abc..f37fec13bb 100644
--- a/src/value.zig
+++ b/src/value.zig
@@ -71,7 +71,7 @@ pub const Value = extern union {
address_space_type,
float_mode_type,
reduce_op_type,
- call_options_type,
+ modifier_type,
prefetch_options_type,
export_options_type,
extern_options_type,
@@ -264,7 +264,7 @@ pub const Value = extern union {
.address_space_type,
.float_mode_type,
.reduce_op_type,
- .call_options_type,
+ .modifier_type,
.prefetch_options_type,
.export_options_type,
.extern_options_type,
@@ -467,7 +467,7 @@ pub const Value = extern union {
.address_space_type,
.float_mode_type,
.reduce_op_type,
- .call_options_type,
+ .modifier_type,
.prefetch_options_type,
.export_options_type,
.extern_options_type,
@@ -723,7 +723,7 @@ pub const Value = extern union {
.address_space_type => return out_stream.writeAll("std.builtin.AddressSpace"),
.float_mode_type => return out_stream.writeAll("std.builtin.FloatMode"),
.reduce_op_type => return out_stream.writeAll("std.builtin.ReduceOp"),
- .call_options_type => return out_stream.writeAll("std.builtin.CallOptions"),
+ .modifier_type => return out_stream.writeAll("std.builtin.CallModifier"),
.prefetch_options_type => return out_stream.writeAll("std.builtin.PrefetchOptions"),
.export_options_type => return out_stream.writeAll("std.builtin.ExportOptions"),
.extern_options_type => return out_stream.writeAll("std.builtin.ExternOptions"),
@@ -963,7 +963,7 @@ pub const Value = extern union {
.address_space_type => Type.initTag(.address_space),
.float_mode_type => Type.initTag(.float_mode),
.reduce_op_type => Type.initTag(.reduce_op),
- .call_options_type => Type.initTag(.call_options),
+ .modifier_type => Type.initTag(.modifier),
.prefetch_options_type => Type.initTag(.prefetch_options),
.export_options_type => Type.initTag(.export_options),
.extern_options_type => Type.initTag(.extern_options),