aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/llvm.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-05-25 23:04:15 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-06-10 20:47:55 -0700
commit66c43968546e38879a2d4c3f2264e10676deef73 (patch)
tree9220a6d6f006e08bd7aa7ccd6997276dae6383bf /src/codegen/llvm.zig
parent9afa97418350a51d8e27f1df903d8034507254ce (diff)
downloadzig-66c43968546e38879a2d4c3f2264e10676deef73.tar.gz
zig-66c43968546e38879a2d4c3f2264e10676deef73.zip
AIR: eliminate the `values` array
Diffstat (limited to 'src/codegen/llvm.zig')
-rw-r--r--src/codegen/llvm.zig10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig
index bbedc1160c..dd07b5edbd 100644
--- a/src/codegen/llvm.zig
+++ b/src/codegen/llvm.zig
@@ -5927,10 +5927,10 @@ pub const FuncGen = struct {
fn airDbgInlineBegin(self: *FuncGen, inst: Air.Inst.Index) !?*llvm.Value {
const dib = self.dg.object.di_builder orelse return null;
- const ty_pl = self.air.instructions.items(.data)[inst].ty_pl;
+ const ty_fn = self.air.instructions.items(.data)[inst].ty_fn;
const mod = self.dg.module;
- const func = self.air.values[ty_pl.payload].getFunction(mod).?;
+ const func = mod.funcPtr(ty_fn.func);
const decl_index = func.owner_decl;
const decl = mod.declPtr(decl_index);
const di_file = try self.dg.object.getDIFile(self.gpa, mod.namespacePtr(decl.src_namespace).file_scope);
@@ -5986,10 +5986,10 @@ pub const FuncGen = struct {
fn airDbgInlineEnd(self: *FuncGen, inst: Air.Inst.Index) !?*llvm.Value {
if (self.dg.object.di_builder == null) return null;
- const ty_pl = self.air.instructions.items(.data)[inst].ty_pl;
+ const ty_fn = self.air.instructions.items(.data)[inst].ty_fn;
const mod = self.dg.module;
- const func = self.air.values[ty_pl.payload].getFunction(mod).?;
+ const func = mod.funcPtr(ty_fn.func);
const decl = mod.declPtr(func.owner_decl);
const di_file = try self.dg.object.getDIFile(self.gpa, mod.namespacePtr(decl.src_namespace).file_scope);
self.di_file = di_file;
@@ -8875,7 +8875,7 @@ pub const FuncGen = struct {
const extra = self.air.extraData(Air.Shuffle, ty_pl.payload).data;
const a = try self.resolveInst(extra.a);
const b = try self.resolveInst(extra.b);
- const mask = self.air.values[extra.mask];
+ const mask = extra.mask.toValue();
const mask_len = extra.mask_len;
const a_len = self.typeOf(extra.a).vectorLen(mod);