| ... | ... | @@ -1308,7 +1308,7 @@ pub const Value = struct { |
| 1308 | 1308 | }; |
| 1309 | 1309 | |
| 1310 | 1310 | /// Materializes a value |
| 1311 | | fn mat(vi: Value.Index, isel: *Select, opts: MatOptions) Mat.Error!Mat { |
| 1311 | fn mat(vi: Value.Index, isel: *Select, opts: MatOptions) codegen.Error!Mat { |
| 1312 | 1312 | // try vi.split(isel, true); |
| 1313 | 1313 | const mat_size = @min(opts.size, @as(u32, @intCast(vi.size(isel) - opts.offset))); |
| 1314 | 1314 | const loc_pref = if (opts.extension == .garbage) |
| ... | ... | @@ -2046,8 +2046,6 @@ pub const Value = struct { |
| 2046 | 2046 | if (!std.debug.runtime_safety) assert(@sizeOf(Mat) <= 32); |
| 2047 | 2047 | } |
| 2048 | 2048 | |
| 2049 | | const Error = codegen.Error; |
| 2050 | | |
| 2051 | 2049 | pub fn ra(mat: Value.Mat) Register.Alias { |
| 2052 | 2050 | return mat.location.register; |
| 2053 | 2051 | } |
| ... | ... | @@ -2066,7 +2064,7 @@ pub const Value = struct { |
| 2066 | 2064 | }; |
| 2067 | 2065 | } |
| 2068 | 2066 | |
| 2069 | | fn finish(mat: Value.Mat, isel: *Select) Mat.Error!void { |
| 2067 | fn finish(mat: Value.Mat, isel: *Select) codegen.Error!void { |
| 2070 | 2068 | const vi = mat.vi; |
| 2071 | 2069 | const value = vi.get(isel); |
| 2072 | 2070 | tracking_log.debug("{f}[{d}..{d}] <- {f} (mat finish)", .{ vi, mat.offset, mat.offset + mat.size - 1, mat.loc() }); |
| ... | ... | @@ -2315,7 +2313,7 @@ fn failUnimplemented(isel: *Select, comptime format: []const u8, args: anytype) |
| 2315 | 2313 | } else return isel.fail(format, args); |
| 2316 | 2314 | } |
| 2317 | 2315 | |
| 2318 | | fn moveDebugString(isel: *Select, reg: Register, msg: [:0]const u8) error{ OutOfMemory, AlreadyReported }!void { |
| 2316 | fn moveDebugString(isel: *Select, reg: Register, msg: [:0]const u8) codegen.Error!void { |
| 2319 | 2317 | @branchHint(.cold); |
| 2320 | 2318 | assert(debug_trap_unimplemented_code); |
| 2321 | 2319 | |