| author | |
| committer | |
| log | 063d55c50479659b171f72ac2ba2d13197f12138 |
| tree | 127219c0cd3dd1eecbab094175651d6012b07b6d |
| parent | 8c9efc95a1892276fee910546a019bee37b3726d |
4 files changed, 0 insertions(+), 17 deletions(-)
src/AstGen.zig-1| ... | @@ -2556,7 +2556,6 @@ fn addEnsureResult(gz: *GenZir, maybe_unused_result: Zir.Inst.Ref, statement: As | ... | @@ -2556,7 +2556,6 @@ fn addEnsureResult(gz: *GenZir, maybe_unused_result: Zir.Inst.Ref, statement: As |
| 2556 | .vector_type, | 2556 | .vector_type, |
| 2557 | .indexable_ptr_len, | 2557 | .indexable_ptr_len, |
| 2558 | .anyframe_type, | 2558 | .anyframe_type, |
| 2559 | .as, | ||
| 2560 | .as_node, | 2559 | .as_node, |
| 2561 | .as_shift_operand, | 2560 | .as_shift_operand, |
| 2562 | .bit_and, | 2561 | .bit_and, |
src/Sema.zig-9| ... | @@ -1018,7 +1018,6 @@ fn analyzeBodyInner( | ... | @@ -1018,7 +1018,6 @@ fn analyzeBodyInner( |
| 1018 | .array_type => try sema.zirArrayType(block, inst), | 1018 | .array_type => try sema.zirArrayType(block, inst), |
| 1019 | .array_type_sentinel => try sema.zirArrayTypeSentinel(block, inst), | 1019 | .array_type_sentinel => try sema.zirArrayTypeSentinel(block, inst), |
| 1020 | .vector_type => try sema.zirVectorType(block, inst), | 1020 | .vector_type => try sema.zirVectorType(block, inst), |
| 1021 | .as => try sema.zirAs(block, inst), | ||
| 1022 | .as_node => try sema.zirAsNode(block, inst), | 1021 | .as_node => try sema.zirAsNode(block, inst), |
| 1023 | .as_shift_operand => try sema.zirAsShiftOperand(block, inst), | 1022 | .as_shift_operand => try sema.zirAsShiftOperand(block, inst), |
| 1024 | .bit_and => try sema.zirBitwise(block, inst, .bit_and), | 1023 | .bit_and => try sema.zirBitwise(block, inst, .bit_and), |
| ... | @@ -9794,14 +9793,6 @@ fn zirParamAnytype( | ... | @@ -9794,14 +9793,6 @@ fn zirParamAnytype( |
| 9794 | sema.inst_map.putAssumeCapacity(inst, .generic_poison); | 9793 | sema.inst_map.putAssumeCapacity(inst, .generic_poison); |
| 9795 | } | 9794 | } |
| 9796 | 9795 | ||
| 9797 | fn zirAs(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | ||
| 9798 | const tracy = trace(@src()); | ||
| 9799 | defer tracy.end(); | ||
| 9800 | |||
| 9801 | const bin_inst = sema.code.instructions.items(.data)[@intFromEnum(inst)].bin; | ||
| 9802 | return sema.analyzeAs(block, sema.src, bin_inst.lhs, bin_inst.rhs, false); | ||
| 9803 | } | ||
| 9804 | |||
| 9805 | fn zirAsNode(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 9796 | fn zirAsNode(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 9806 | const tracy = trace(@src()); | 9797 | const tracy = trace(@src()); |
| 9807 | defer tracy.end(); | 9798 | defer tracy.end(); |
src/Zir.zig-6| ... | @@ -277,9 +277,6 @@ pub const Inst = struct { | ... | @@ -277,9 +277,6 @@ pub const Inst = struct { |
| 277 | /// Create a `anyframe->T` type. | 277 | /// Create a `anyframe->T` type. |
| 278 | /// Uses the `un_node` field. | 278 | /// Uses the `un_node` field. |
| 279 | anyframe_type, | 279 | anyframe_type, |
| 280 | /// Type coercion. No source location attached. | ||
| 281 | /// Uses the `bin` field. | ||
| 282 | as, | ||
| 283 | /// Type coercion to the function's return type. | 280 | /// Type coercion to the function's return type. |
| 284 | /// Uses the `pl_node` field. Payload is `As`. AST node could be many things. | 281 | /// Uses the `pl_node` field. Payload is `As`. AST node could be many things. |
| 285 | as_node, | 282 | as_node, |
| ... | @@ -1083,7 +1080,6 @@ pub const Inst = struct { | ... | @@ -1083,7 +1080,6 @@ pub const Inst = struct { |
| 1083 | .vector_elem_type, | 1080 | .vector_elem_type, |
| 1084 | .indexable_ptr_len, | 1081 | .indexable_ptr_len, |
| 1085 | .anyframe_type, | 1082 | .anyframe_type, |
| 1086 | .as, | ||
| 1087 | .as_node, | 1083 | .as_node, |
| 1088 | .as_shift_operand, | 1084 | .as_shift_operand, |
| 1089 | .bit_and, | 1085 | .bit_and, |
| ... | @@ -1396,7 +1392,6 @@ pub const Inst = struct { | ... | @@ -1396,7 +1392,6 @@ pub const Inst = struct { |
| 1396 | .vector_elem_type, | 1392 | .vector_elem_type, |
| 1397 | .indexable_ptr_len, | 1393 | .indexable_ptr_len, |
| 1398 | .anyframe_type, | 1394 | .anyframe_type, |
| 1399 | .as, | ||
| 1400 | .as_node, | 1395 | .as_node, |
| 1401 | .as_shift_operand, | 1396 | .as_shift_operand, |
| 1402 | .bit_and, | 1397 | .bit_and, |
| ... | @@ -1629,7 +1624,6 @@ pub const Inst = struct { | ... | @@ -1629,7 +1624,6 @@ pub const Inst = struct { |
| 1629 | .vector_elem_type = .un_node, | 1624 | .vector_elem_type = .un_node, |
| 1630 | .indexable_ptr_len = .un_node, | 1625 | .indexable_ptr_len = .un_node, |
| 1631 | .anyframe_type = .un_node, | 1626 | .anyframe_type = .un_node, |
| 1632 | .as = .bin, | ||
| 1633 | .as_node = .pl_node, | 1627 | .as_node = .pl_node, |
| 1634 | .as_shift_operand = .pl_node, | 1628 | .as_shift_operand = .pl_node, |
| 1635 | .bit_and = .pl_node, | 1629 | .bit_and = .pl_node, |
src/print_zir.zig-1| ... | @@ -199,7 +199,6 @@ const Writer = struct { | ... | @@ -199,7 +199,6 @@ const Writer = struct { |
| 199 | const tag = tags[@intFromEnum(inst)]; | 199 | const tag = tags[@intFromEnum(inst)]; |
| 200 | try stream.print("= {s}(", .{@tagName(tags[@intFromEnum(inst)])}); | 200 | try stream.print("= {s}(", .{@tagName(tags[@intFromEnum(inst)])}); |
| 201 | switch (tag) { | 201 | switch (tag) { |
| 202 | .as, | ||
| 203 | .store, | 202 | .store, |
| 204 | .store_to_inferred_ptr, | 203 | .store_to_inferred_ptr, |
| 205 | => try self.writeBin(stream, inst), | 204 | => try self.writeBin(stream, inst), |