| ... | @@ -19,7 +19,6 @@ const Type = @import("Type.zig"); | ... | @@ -19,7 +19,6 @@ const Type = @import("Type.zig"); |
| 19 | const Air = @import("Air.zig"); | 19 | const Air = @import("Air.zig"); |
| 20 | const Zir = std.zig.Zir; | 20 | const Zir = std.zig.Zir; |
| 21 | const Zcu = @import("Zcu.zig"); | 21 | const Zcu = @import("Zcu.zig"); |
| 22 | const trace = @import("tracy.zig").trace; | | |
| 23 | const Namespace = Zcu.Namespace; | 22 | const Namespace = Zcu.Namespace; |
| 24 | const CompileError = Zcu.CompileError; | 23 | const CompileError = Zcu.CompileError; |
| 25 | const SemaError = Zcu.SemaError; | 24 | const SemaError = Zcu.SemaError; |
| ... | @@ -1127,8 +1126,6 @@ fn analyzeBodyInner( | ... | @@ -1127,8 +1126,6 @@ fn analyzeBodyInner( |
| 1127 | block: *Block, | 1126 | block: *Block, |
| 1128 | body: []const Zir.Inst.Index, | 1127 | body: []const Zir.Inst.Index, |
| 1129 | ) CompileError!void { | 1128 | ) CompileError!void { |
| 1130 | // No tracy calls here, to avoid interfering with the tail call mechanism. | | |
| 1131 | | | |
| 1132 | try sema.inst_map.ensureSpaceForInstructions(sema.gpa, body); | 1129 | try sema.inst_map.ensureSpaceForInstructions(sema.gpa, body); |
| 1133 | | 1130 | |
| 1134 | const pt = sema.pt; | 1131 | const pt = sema.pt; |
| ... | @@ -3002,9 +2999,6 @@ fn zirErrorSetDecl( | ... | @@ -3002,9 +2999,6 @@ fn zirErrorSetDecl( |
| 3002 | sema: *Sema, | 2999 | sema: *Sema, |
| 3003 | inst: Zir.Inst.Index, | 3000 | inst: Zir.Inst.Index, |
| 3004 | ) CompileError!Air.Inst.Ref { | 3001 | ) CompileError!Air.Inst.Ref { |
| 3005 | const tracy = trace(@src()); | | |
| 3006 | defer tracy.end(); | | |
| 3007 | | | |
| 3008 | const pt = sema.pt; | 3002 | const pt = sema.pt; |
| 3009 | const zcu = pt.zcu; | 3003 | const zcu = pt.zcu; |
| 3010 | const comp = zcu.comp; | 3004 | const comp = zcu.comp; |
| ... | @@ -3032,9 +3026,6 @@ fn zirErrorSetDecl( | ... | @@ -3032,9 +3026,6 @@ fn zirErrorSetDecl( |
| 3032 | } | 3026 | } |
| 3033 | | 3027 | |
| 3034 | fn zirRetPtr(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 3028 | fn zirRetPtr(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 3035 | const tracy = trace(@src()); | | |
| 3036 | defer tracy.end(); | | |
| 3037 | | | |
| 3038 | const pt = sema.pt; | 3029 | const pt = sema.pt; |
| 3039 | const zcu = pt.zcu; | 3030 | const zcu = pt.zcu; |
| 3040 | | 3031 | |
| ... | @@ -3061,18 +3052,12 @@ fn zirRetPtr(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air. | ... | @@ -3061,18 +3052,12 @@ fn zirRetPtr(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air. |
| 3061 | } | 3052 | } |
| 3062 | | 3053 | |
| 3063 | fn zirRef(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 3054 | fn zirRef(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 3064 | const tracy = trace(@src()); | | |
| 3065 | defer tracy.end(); | | |
| 3066 | | | |
| 3067 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_tok; | 3055 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_tok; |
| 3068 | const operand = sema.resolveInst(inst_data.operand); | 3056 | const operand = sema.resolveInst(inst_data.operand); |
| 3069 | return sema.analyzeRef(block, block.tokenOffset(inst_data.src_tok), operand, .none); | 3057 | return sema.analyzeRef(block, block.tokenOffset(inst_data.src_tok), operand, .none); |
| 3070 | } | 3058 | } |
| 3071 | | 3059 | |
| 3072 | fn zirEnsureResultUsed(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!void { | 3060 | fn zirEnsureResultUsed(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!void { |
| 3073 | const tracy = trace(@src()); | | |
| 3074 | defer tracy.end(); | | |
| 3075 | | | |
| 3076 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; | 3061 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; |
| 3077 | const operand = sema.resolveInst(inst_data.operand); | 3062 | const operand = sema.resolveInst(inst_data.operand); |
| 3078 | const src = block.nodeOffset(inst_data.src_node); | 3063 | const src = block.nodeOffset(inst_data.src_node); |
| ... | @@ -3114,9 +3099,6 @@ fn ensureResultUsed( | ... | @@ -3114,9 +3099,6 @@ fn ensureResultUsed( |
| 3114 | } | 3099 | } |
| 3115 | | 3100 | |
| 3116 | fn zirEnsureResultNonError(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!void { | 3101 | fn zirEnsureResultNonError(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!void { |
| 3117 | const tracy = trace(@src()); | | |
| 3118 | defer tracy.end(); | | |
| 3119 | | | |
| 3120 | const pt = sema.pt; | 3102 | const pt = sema.pt; |
| 3121 | const zcu = pt.zcu; | 3103 | const zcu = pt.zcu; |
| 3122 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; | 3104 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; |
| ... | @@ -3139,9 +3121,6 @@ fn zirEnsureResultNonError(sema: *Sema, block: *Block, inst: Zir.Inst.Index) Com | ... | @@ -3139,9 +3121,6 @@ fn zirEnsureResultNonError(sema: *Sema, block: *Block, inst: Zir.Inst.Index) Com |
| 3139 | } | 3121 | } |
| 3140 | | 3122 | |
| 3141 | fn zirEnsureErrUnionPayloadVoid(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!void { | 3123 | fn zirEnsureErrUnionPayloadVoid(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!void { |
| 3142 | const tracy = trace(@src()); | | |
| 3143 | defer tracy.end(); | | |
| 3144 | | | |
| 3145 | const pt = sema.pt; | 3124 | const pt = sema.pt; |
| 3146 | const zcu = pt.zcu; | 3125 | const zcu = pt.zcu; |
| 3147 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; | 3126 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; |
| ... | @@ -3166,9 +3145,6 @@ fn zirEnsureErrUnionPayloadVoid(sema: *Sema, block: *Block, inst: Zir.Inst.Index | ... | @@ -3166,9 +3145,6 @@ fn zirEnsureErrUnionPayloadVoid(sema: *Sema, block: *Block, inst: Zir.Inst.Index |
| 3166 | } | 3145 | } |
| 3167 | | 3146 | |
| 3168 | fn zirIndexablePtrLen(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 3147 | fn zirIndexablePtrLen(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 3169 | const tracy = trace(@src()); | | |
| 3170 | defer tracy.end(); | | |
| 3171 | | | |
| 3172 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; | 3148 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; |
| 3173 | const src = block.nodeOffset(inst_data.src_node); | 3149 | const src = block.nodeOffset(inst_data.src_node); |
| 3174 | const object = sema.resolveInst(inst_data.operand); | 3150 | const object = sema.resolveInst(inst_data.operand); |
| ... | @@ -3302,9 +3278,6 @@ fn zirAllocExtended( | ... | @@ -3302,9 +3278,6 @@ fn zirAllocExtended( |
| 3302 | } | 3278 | } |
| 3303 | | 3279 | |
| 3304 | fn zirAllocComptime(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 3280 | fn zirAllocComptime(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 3305 | const tracy = trace(@src()); | | |
| 3306 | defer tracy.end(); | | |
| 3307 | | | |
| 3308 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; | 3281 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; |
| 3309 | const ty_src = block.src(.{ .node_offset_var_decl_ty = inst_data.src_node }); | 3282 | const ty_src = block.src(.{ .node_offset_var_decl_ty = inst_data.src_node }); |
| 3310 | const var_src = block.nodeOffset(inst_data.src_node); | 3283 | const var_src = block.nodeOffset(inst_data.src_node); |
| ... | @@ -3732,9 +3705,6 @@ fn zirAllocInferredComptime( | ... | @@ -3732,9 +3705,6 @@ fn zirAllocInferredComptime( |
| 3732 | } | 3705 | } |
| 3733 | | 3706 | |
| 3734 | fn zirAlloc(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 3707 | fn zirAlloc(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 3735 | const tracy = trace(@src()); | | |
| 3736 | defer tracy.end(); | | |
| 3737 | | | |
| 3738 | const pt = sema.pt; | 3708 | const pt = sema.pt; |
| 3739 | const zcu = pt.zcu; | 3709 | const zcu = pt.zcu; |
| 3740 | | 3710 | |
| ... | @@ -3764,9 +3734,6 @@ fn zirAlloc(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.I | ... | @@ -3764,9 +3734,6 @@ fn zirAlloc(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.I |
| 3764 | } | 3734 | } |
| 3765 | | 3735 | |
| 3766 | fn zirAllocMut(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 3736 | fn zirAllocMut(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 3767 | const tracy = trace(@src()); | | |
| 3768 | defer tracy.end(); | | |
| 3769 | | | |
| 3770 | const pt = sema.pt; | 3737 | const pt = sema.pt; |
| 3771 | const zcu = pt.zcu; | 3738 | const zcu = pt.zcu; |
| 3772 | | 3739 | |
| ... | @@ -3797,9 +3764,6 @@ fn zirAllocInferred( | ... | @@ -3797,9 +3764,6 @@ fn zirAllocInferred( |
| 3797 | block: *Block, | 3764 | block: *Block, |
| 3798 | is_const: bool, | 3765 | is_const: bool, |
| 3799 | ) CompileError!Air.Inst.Ref { | 3766 | ) CompileError!Air.Inst.Ref { |
| 3800 | const tracy = trace(@src()); | | |
| 3801 | defer tracy.end(); | | |
| 3802 | | | |
| 3803 | const gpa = sema.gpa; | 3767 | const gpa = sema.gpa; |
| 3804 | | 3768 | |
| 3805 | if (block.isComptime()) { | 3769 | if (block.isComptime()) { |
| ... | @@ -3830,9 +3794,6 @@ fn zirAllocInferred( | ... | @@ -3830,9 +3794,6 @@ fn zirAllocInferred( |
| 3830 | } | 3794 | } |
| 3831 | | 3795 | |
| 3832 | fn zirResolveInferredAlloc(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 3796 | fn zirResolveInferredAlloc(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 3833 | const tracy = trace(@src()); | | |
| 3834 | defer tracy.end(); | | |
| 3835 | | | |
| 3836 | const pt = sema.pt; | 3797 | const pt = sema.pt; |
| 3837 | const zcu = pt.zcu; | 3798 | const zcu = pt.zcu; |
| 3838 | const gpa = sema.gpa; | 3799 | const gpa = sema.gpa; |
| ... | @@ -4391,9 +4352,6 @@ fn zirValidatePtrStructInit( | ... | @@ -4391,9 +4352,6 @@ fn zirValidatePtrStructInit( |
| 4391 | block: *Block, | 4352 | block: *Block, |
| 4392 | inst: Zir.Inst.Index, | 4353 | inst: Zir.Inst.Index, |
| 4393 | ) CompileError!void { | 4354 | ) CompileError!void { |
| 4394 | const tracy = trace(@src()); | | |
| 4395 | defer tracy.end(); | | |
| 4396 | | | |
| 4397 | const pt = sema.pt; | 4355 | const pt = sema.pt; |
| 4398 | const zcu = pt.zcu; | 4356 | const zcu = pt.zcu; |
| 4399 | const validate_inst = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; | 4357 | const validate_inst = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; |
| ... | @@ -4776,9 +4734,6 @@ pub fn addDeclaredHereNote(sema: *Sema, parent: *Zcu.ErrorMsg, decl_ty: Type) !v | ... | @@ -4776,9 +4734,6 @@ pub fn addDeclaredHereNote(sema: *Sema, parent: *Zcu.ErrorMsg, decl_ty: Type) !v |
| 4776 | } | 4734 | } |
| 4777 | | 4735 | |
| 4778 | fn zirStoreToInferredPtr(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!void { | 4736 | fn zirStoreToInferredPtr(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!void { |
| 4779 | const tracy = trace(@src()); | | |
| 4780 | defer tracy.end(); | | |
| 4781 | | | |
| 4782 | const pl_node = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; | 4737 | const pl_node = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; |
| 4783 | const src = block.nodeOffset(pl_node.src_node); | 4738 | const src = block.nodeOffset(pl_node.src_node); |
| 4784 | const bin = sema.code.extraData(Zir.Inst.Bin, pl_node.payload_index).data; | 4739 | const bin = sema.code.extraData(Zir.Inst.Bin, pl_node.payload_index).data; |
| ... | @@ -4870,9 +4825,6 @@ fn zirSetEvalBranchQuota(sema: *Sema, block: *Block, inst: Zir.Inst.Index) Compi | ... | @@ -4870,9 +4825,6 @@ fn zirSetEvalBranchQuota(sema: *Sema, block: *Block, inst: Zir.Inst.Index) Compi |
| 4870 | } | 4825 | } |
| 4871 | | 4826 | |
| 4872 | fn zirStoreNode(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!void { | 4827 | fn zirStoreNode(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!void { |
| 4873 | const tracy = trace(@src()); | | |
| 4874 | defer tracy.end(); | | |
| 4875 | | | |
| 4876 | const zir_tags = sema.code.instructions.items(.tag); | 4828 | const zir_tags = sema.code.instructions.items(.tag); |
| 4877 | const zir_datas = sema.code.instructions.items(.data); | 4829 | const zir_datas = sema.code.instructions.items(.data); |
| 4878 | const inst_data = zir_datas[@intFromEnum(inst)].pl_node; | 4830 | const inst_data = zir_datas[@intFromEnum(inst)].pl_node; |
| ... | @@ -4935,8 +4887,6 @@ fn uavRef(sema: *Sema, val: Value) CompileError!Air.Inst.Ref { | ... | @@ -4935,8 +4887,6 @@ fn uavRef(sema: *Sema, val: Value) CompileError!Air.Inst.Ref { |
| 4935 | | 4887 | |
| 4936 | fn zirInt(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 4888 | fn zirInt(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 4937 | _ = block; | 4889 | _ = block; |
| 4938 | const tracy = trace(@src()); | | |
| 4939 | defer tracy.end(); | | |
| 4940 | | 4890 | |
| 4941 | const int = sema.code.instructions.items(.data)[@intFromEnum(inst)].int; | 4891 | const int = sema.code.instructions.items(.data)[@intFromEnum(inst)].int; |
| 4942 | return sema.pt.intRef(.comptime_int, int); | 4892 | return sema.pt.intRef(.comptime_int, int); |
| ... | @@ -4944,8 +4894,6 @@ fn zirInt(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Ins | ... | @@ -4944,8 +4894,6 @@ fn zirInt(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Ins |
| 4944 | | 4894 | |
| 4945 | fn zirIntBig(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 4895 | fn zirIntBig(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 4946 | _ = block; | 4896 | _ = block; |
| 4947 | const tracy = trace(@src()); | | |
| 4948 | defer tracy.end(); | | |
| 4949 | | 4897 | |
| 4950 | const int = sema.code.instructions.items(.data)[@intFromEnum(inst)].str; | 4898 | const int = sema.code.instructions.items(.data)[@intFromEnum(inst)].str; |
| 4951 | const byte_count = int.len * @sizeOf(std.math.big.Limb); | 4899 | const byte_count = int.len * @sizeOf(std.math.big.Limb); |
| ... | @@ -4981,9 +4929,6 @@ fn zirFloat128(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai | ... | @@ -4981,9 +4929,6 @@ fn zirFloat128(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai |
| 4981 | } | 4929 | } |
| 4982 | | 4930 | |
| 4983 | fn zirCompileError(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!void { | 4931 | fn zirCompileError(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!void { |
| 4984 | const tracy = trace(@src()); | | |
| 4985 | defer tracy.end(); | | |
| 4986 | | | |
| 4987 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; | 4932 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; |
| 4988 | const src = block.nodeOffset(inst_data.src_node); | 4933 | const src = block.nodeOffset(inst_data.src_node); |
| 4989 | const operand_src = block.builtinCallArgSrc(inst_data.src_node, 0); | 4934 | const operand_src = block.builtinCallArgSrc(inst_data.src_node, 0); |
| ... | @@ -5111,9 +5056,6 @@ fn zirTrap(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!void { | ... | @@ -5111,9 +5056,6 @@ fn zirTrap(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!void { |
| 5111 | } | 5056 | } |
| 5112 | | 5057 | |
| 5113 | fn zirLoop(sema: *Sema, parent_block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 5058 | fn zirLoop(sema: *Sema, parent_block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 5114 | const tracy = trace(@src()); | | |
| 5115 | defer tracy.end(); | | |
| 5116 | | | |
| 5117 | const pt = sema.pt; | 5059 | const pt = sema.pt; |
| 5118 | const zcu = pt.zcu; | 5060 | const zcu = pt.zcu; |
| 5119 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; | 5061 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; |
| ... | @@ -5202,9 +5144,6 @@ fn zirSuspendBlock(sema: *Sema, parent_block: *Block, inst: Zir.Inst.Index) Comp | ... | @@ -5202,9 +5144,6 @@ fn zirSuspendBlock(sema: *Sema, parent_block: *Block, inst: Zir.Inst.Index) Comp |
| 5202 | } | 5144 | } |
| 5203 | | 5145 | |
| 5204 | fn zirBlock(sema: *Sema, parent_block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 5146 | fn zirBlock(sema: *Sema, parent_block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 5205 | const tracy = trace(@src()); | | |
| 5206 | defer tracy.end(); | | |
| 5207 | | | |
| 5208 | const pl_node = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; | 5147 | const pl_node = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; |
| 5209 | const src = parent_block.nodeOffset(pl_node.src_node); | 5148 | const src = parent_block.nodeOffset(pl_node.src_node); |
| 5210 | const extra = sema.code.extraData(Zir.Inst.Block, pl_node.payload_index); | 5149 | const extra = sema.code.extraData(Zir.Inst.Block, pl_node.payload_index); |
| ... | @@ -5326,9 +5265,6 @@ fn resolveAnalyzedBlock( | ... | @@ -5326,9 +5265,6 @@ fn resolveAnalyzedBlock( |
| 5326 | merges: *Block.Merges, | 5265 | merges: *Block.Merges, |
| 5327 | need_debug_scope: bool, | 5266 | need_debug_scope: bool, |
| 5328 | ) CompileError!Air.Inst.Ref { | 5267 | ) CompileError!Air.Inst.Ref { |
| 5329 | const tracy = trace(@src()); | | |
| 5330 | defer tracy.end(); | | |
| 5331 | | | |
| 5332 | const gpa = sema.gpa; | 5268 | const gpa = sema.gpa; |
| 5333 | const pt = sema.pt; | 5269 | const pt = sema.pt; |
| 5334 | const zcu = pt.zcu; | 5270 | const zcu = pt.zcu; |
| ... | @@ -5540,9 +5476,6 @@ fn resolveAnalyzedBlock( | ... | @@ -5540,9 +5476,6 @@ fn resolveAnalyzedBlock( |
| 5540 | } | 5476 | } |
| 5541 | | 5477 | |
| 5542 | fn zirExport(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!void { | 5478 | fn zirExport(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!void { |
| 5543 | const tracy = trace(@src()); | | |
| 5544 | defer tracy.end(); | | |
| 5545 | | | |
| 5546 | const pt = sema.pt; | 5479 | const pt = sema.pt; |
| 5547 | const zcu = pt.zcu; | 5480 | const zcu = pt.zcu; |
| 5548 | const ip = &zcu.intern_pool; | 5481 | const ip = &zcu.intern_pool; |
| ... | @@ -5713,9 +5646,6 @@ fn zirSetRuntimeSafety(sema: *Sema, block: *Block, inst: Zir.Inst.Index) Compile | ... | @@ -5713,9 +5646,6 @@ fn zirSetRuntimeSafety(sema: *Sema, block: *Block, inst: Zir.Inst.Index) Compile |
| 5713 | } | 5646 | } |
| 5714 | | 5647 | |
| 5715 | fn zirBreak(sema: *Sema, start_block: *Block, inst: Zir.Inst.Index) CompileError!void { | 5648 | fn zirBreak(sema: *Sema, start_block: *Block, inst: Zir.Inst.Index) CompileError!void { |
| 5716 | const tracy = trace(@src()); | | |
| 5717 | defer tracy.end(); | | |
| 5718 | | | |
| 5719 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].@"break"; | 5649 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].@"break"; |
| 5720 | const extra = sema.code.extraData(Zir.Inst.Break, inst_data.payload_index).data; | 5650 | const extra = sema.code.extraData(Zir.Inst.Break, inst_data.payload_index).data; |
| 5721 | const operand = sema.resolveInst(inst_data.operand); | 5651 | const operand = sema.resolveInst(inst_data.operand); |
| ... | @@ -5746,9 +5676,6 @@ fn zirBreak(sema: *Sema, start_block: *Block, inst: Zir.Inst.Index) CompileError | ... | @@ -5746,9 +5676,6 @@ fn zirBreak(sema: *Sema, start_block: *Block, inst: Zir.Inst.Index) CompileError |
| 5746 | } | 5676 | } |
| 5747 | | 5677 | |
| 5748 | fn zirSwitchContinue(sema: *Sema, start_block: *Block, inst: Zir.Inst.Index) CompileError!void { | 5678 | fn zirSwitchContinue(sema: *Sema, start_block: *Block, inst: Zir.Inst.Index) CompileError!void { |
| 5749 | const tracy = trace(@src()); | | |
| 5750 | defer tracy.end(); | | |
| 5751 | | | |
| 5752 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].@"break"; | 5679 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].@"break"; |
| 5753 | const extra = sema.code.extraData(Zir.Inst.Break, inst_data.payload_index).data; | 5680 | const extra = sema.code.extraData(Zir.Inst.Break, inst_data.payload_index).data; |
| 5754 | const operand_src = start_block.nodeOffset(extra.operand_src_node.unwrap().?); | 5681 | const operand_src = start_block.nodeOffset(extra.operand_src_node.unwrap().?); |
| ... | @@ -6139,9 +6066,6 @@ fn zirCall( | ... | @@ -6139,9 +6066,6 @@ fn zirCall( |
| 6139 | inst: Zir.Inst.Index, | 6066 | inst: Zir.Inst.Index, |
| 6140 | comptime kind: enum { direct, field }, | 6067 | comptime kind: enum { direct, field }, |
| 6141 | ) CompileError!Air.Inst.Ref { | 6068 | ) CompileError!Air.Inst.Ref { |
| 6142 | const tracy = trace(@src()); | | |
| 6143 | defer tracy.end(); | | |
| 6144 | | | |
| 6145 | const pt = sema.pt; | 6069 | const pt = sema.pt; |
| 6146 | const zcu = pt.zcu; | 6070 | const zcu = pt.zcu; |
| 6147 | const comp = zcu.comp; | 6071 | const comp = zcu.comp; |
| ... | @@ -7376,9 +7300,6 @@ fn zirIntType(sema: *Sema, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | ... | @@ -7376,9 +7300,6 @@ fn zirIntType(sema: *Sema, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 7376 | } | 7300 | } |
| 7377 | | 7301 | |
| 7378 | fn zirOptionalType(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 7302 | fn zirOptionalType(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 7379 | const tracy = trace(@src()); | | |
| 7380 | defer tracy.end(); | | |
| 7381 | | | |
| 7382 | const pt = sema.pt; | 7303 | const pt = sema.pt; |
| 7383 | const zcu = pt.zcu; | 7304 | const zcu = pt.zcu; |
| 7384 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; | 7305 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; |
| ... | @@ -7469,9 +7390,6 @@ fn zirVectorType(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError! | ... | @@ -7469,9 +7390,6 @@ fn zirVectorType(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError! |
| 7469 | } | 7390 | } |
| 7470 | | 7391 | |
| 7471 | fn zirArrayType(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 7392 | fn zirArrayType(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 7472 | const tracy = trace(@src()); | | |
| 7473 | defer tracy.end(); | | |
| 7474 | | | |
| 7475 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; | 7393 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; |
| 7476 | const extra = sema.code.extraData(Zir.Inst.Bin, inst_data.payload_index).data; | 7394 | const extra = sema.code.extraData(Zir.Inst.Bin, inst_data.payload_index).data; |
| 7477 | const len_src = block.src(.{ .node_offset_array_type_len = inst_data.src_node }); | 7395 | const len_src = block.src(.{ .node_offset_array_type_len = inst_data.src_node }); |
| ... | @@ -7488,9 +7406,6 @@ fn zirArrayType(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!A | ... | @@ -7488,9 +7406,6 @@ fn zirArrayType(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!A |
| 7488 | } | 7406 | } |
| 7489 | | 7407 | |
| 7490 | fn zirArrayTypeSentinel(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 7408 | fn zirArrayTypeSentinel(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 7491 | const tracy = trace(@src()); | | |
| 7492 | defer tracy.end(); | | |
| 7493 | | | |
| 7494 | const pt = sema.pt; | 7409 | const pt = sema.pt; |
| 7495 | const zcu = pt.zcu; | 7410 | const zcu = pt.zcu; |
| 7496 | const comp = zcu.comp; | 7411 | const comp = zcu.comp; |
| ... | @@ -7534,9 +7449,6 @@ fn validateArrayElemType(sema: *Sema, block: *Block, elem_type: Type, elem_src: | ... | @@ -7534,9 +7449,6 @@ fn validateArrayElemType(sema: *Sema, block: *Block, elem_type: Type, elem_src: |
| 7534 | } | 7449 | } |
| 7535 | | 7450 | |
| 7536 | fn zirAnyframeType(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 7451 | fn zirAnyframeType(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 7537 | const tracy = trace(@src()); | | |
| 7538 | defer tracy.end(); | | |
| 7539 | | | |
| 7540 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; | 7452 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; |
| 7541 | if (true) { | 7453 | if (true) { |
| 7542 | return sema.failWithUseOfAsync(block, block.nodeOffset(inst_data.src_node)); | 7454 | return sema.failWithUseOfAsync(block, block.nodeOffset(inst_data.src_node)); |
| ... | @@ -7550,9 +7462,6 @@ fn zirAnyframeType(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileErro | ... | @@ -7550,9 +7462,6 @@ fn zirAnyframeType(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileErro |
| 7550 | } | 7462 | } |
| 7551 | | 7463 | |
| 7552 | fn zirErrorUnionType(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 7464 | fn zirErrorUnionType(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 7553 | const tracy = trace(@src()); | | |
| 7554 | defer tracy.end(); | | |
| 7555 | | | |
| 7556 | const pt = sema.pt; | 7465 | const pt = sema.pt; |
| 7557 | const zcu = pt.zcu; | 7466 | const zcu = pt.zcu; |
| 7558 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; | 7467 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; |
| ... | @@ -7613,9 +7522,6 @@ fn zirErrorValue(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError! | ... | @@ -7613,9 +7522,6 @@ fn zirErrorValue(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError! |
| 7613 | } | 7522 | } |
| 7614 | | 7523 | |
| 7615 | fn zirIntFromError(sema: *Sema, block: *Block, extended: Zir.Inst.Extended.InstData) CompileError!Air.Inst.Ref { | 7524 | fn zirIntFromError(sema: *Sema, block: *Block, extended: Zir.Inst.Extended.InstData) CompileError!Air.Inst.Ref { |
| 7616 | const tracy = trace(@src()); | | |
| 7617 | defer tracy.end(); | | |
| 7618 | | | |
| 7619 | const pt = sema.pt; | 7525 | const pt = sema.pt; |
| 7620 | const zcu = pt.zcu; | 7526 | const zcu = pt.zcu; |
| 7621 | const ip = &zcu.intern_pool; | 7527 | const ip = &zcu.intern_pool; |
| ... | @@ -7655,9 +7561,6 @@ fn zirIntFromError(sema: *Sema, block: *Block, extended: Zir.Inst.Extended.InstD | ... | @@ -7655,9 +7561,6 @@ fn zirIntFromError(sema: *Sema, block: *Block, extended: Zir.Inst.Extended.InstD |
| 7655 | } | 7561 | } |
| 7656 | | 7562 | |
| 7657 | fn zirErrorFromInt(sema: *Sema, block: *Block, extended: Zir.Inst.Extended.InstData) CompileError!Air.Inst.Ref { | 7563 | fn zirErrorFromInt(sema: *Sema, block: *Block, extended: Zir.Inst.Extended.InstData) CompileError!Air.Inst.Ref { |
| 7658 | const tracy = trace(@src()); | | |
| 7659 | defer tracy.end(); | | |
| 7660 | | | |
| 7661 | const pt = sema.pt; | 7564 | const pt = sema.pt; |
| 7662 | const zcu = pt.zcu; | 7565 | const zcu = pt.zcu; |
| 7663 | const io = zcu.comp.io; | 7566 | const io = zcu.comp.io; |
| ... | @@ -7702,9 +7605,6 @@ fn zirErrorFromInt(sema: *Sema, block: *Block, extended: Zir.Inst.Extended.InstD | ... | @@ -7702,9 +7605,6 @@ fn zirErrorFromInt(sema: *Sema, block: *Block, extended: Zir.Inst.Extended.InstD |
| 7702 | } | 7605 | } |
| 7703 | | 7606 | |
| 7704 | fn zirMergeErrorSets(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 7607 | fn zirMergeErrorSets(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 7705 | const tracy = trace(@src()); | | |
| 7706 | defer tracy.end(); | | |
| 7707 | | | |
| 7708 | const pt = sema.pt; | 7608 | const pt = sema.pt; |
| 7709 | const zcu = pt.zcu; | 7609 | const zcu = pt.zcu; |
| 7710 | const ip = &zcu.intern_pool; | 7610 | const ip = &zcu.intern_pool; |
| ... | @@ -7759,8 +7659,6 @@ fn zirMergeErrorSets(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileEr | ... | @@ -7759,8 +7659,6 @@ fn zirMergeErrorSets(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileEr |
| 7759 | | 7659 | |
| 7760 | fn zirEnumLiteral(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 7660 | fn zirEnumLiteral(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 7761 | _ = block; | 7661 | _ = block; |
| 7762 | const tracy = trace(@src()); | | |
| 7763 | defer tracy.end(); | | |
| 7764 | | 7662 | |
| 7765 | const pt = sema.pt; | 7663 | const pt = sema.pt; |
| 7766 | const zcu = pt.zcu; | 7664 | const zcu = pt.zcu; |
| ... | @@ -7776,9 +7674,6 @@ fn zirEnumLiteral(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError | ... | @@ -7776,9 +7674,6 @@ fn zirEnumLiteral(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError |
| 7776 | } | 7674 | } |
| 7777 | | 7675 | |
| 7778 | fn zirDeclLiteral(sema: *Sema, block: *Block, inst: Zir.Inst.Index, do_coerce: bool) CompileError!Air.Inst.Ref { | 7676 | fn zirDeclLiteral(sema: *Sema, block: *Block, inst: Zir.Inst.Index, do_coerce: bool) CompileError!Air.Inst.Ref { |
| 7779 | const tracy = trace(@src()); | | |
| 7780 | defer tracy.end(); | | |
| 7781 | | | |
| 7782 | const pt = sema.pt; | 7677 | const pt = sema.pt; |
| 7783 | const zcu = pt.zcu; | 7678 | const zcu = pt.zcu; |
| 7784 | const comp = zcu.comp; | 7679 | const comp = zcu.comp; |
| ... | @@ -7960,9 +7855,6 @@ fn zirOptionalPayloadPtr( | ... | @@ -7960,9 +7855,6 @@ fn zirOptionalPayloadPtr( |
| 7960 | inst: Zir.Inst.Index, | 7855 | inst: Zir.Inst.Index, |
| 7961 | safety_check: bool, | 7856 | safety_check: bool, |
| 7962 | ) CompileError!Air.Inst.Ref { | 7857 | ) CompileError!Air.Inst.Ref { |
| 7963 | const tracy = trace(@src()); | | |
| 7964 | defer tracy.end(); | | |
| 7965 | | | |
| 7966 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; | 7858 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; |
| 7967 | const optional_ptr = sema.resolveInst(inst_data.operand); | 7859 | const optional_ptr = sema.resolveInst(inst_data.operand); |
| 7968 | const src = block.nodeOffset(inst_data.src_node); | 7860 | const src = block.nodeOffset(inst_data.src_node); |
| ... | @@ -8051,9 +7943,6 @@ fn zirOptionalPayload( | ... | @@ -8051,9 +7943,6 @@ fn zirOptionalPayload( |
| 8051 | inst: Zir.Inst.Index, | 7943 | inst: Zir.Inst.Index, |
| 8052 | safety_check: bool, | 7944 | safety_check: bool, |
| 8053 | ) CompileError!Air.Inst.Ref { | 7945 | ) CompileError!Air.Inst.Ref { |
| 8054 | const tracy = trace(@src()); | | |
| 8055 | defer tracy.end(); | | |
| 8056 | | | |
| 8057 | const pt = sema.pt; | 7946 | const pt = sema.pt; |
| 8058 | const zcu = pt.zcu; | 7947 | const zcu = pt.zcu; |
| 8059 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; | 7948 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; |
| ... | @@ -8105,9 +7994,6 @@ fn zirErrUnionPayload( | ... | @@ -8105,9 +7994,6 @@ fn zirErrUnionPayload( |
| 8105 | block: *Block, | 7994 | block: *Block, |
| 8106 | inst: Zir.Inst.Index, | 7995 | inst: Zir.Inst.Index, |
| 8107 | ) CompileError!Air.Inst.Ref { | 7996 | ) CompileError!Air.Inst.Ref { |
| 8108 | const tracy = trace(@src()); | | |
| 8109 | defer tracy.end(); | | |
| 8110 | | | |
| 8111 | const pt = sema.pt; | 7997 | const pt = sema.pt; |
| 8112 | const zcu = pt.zcu; | 7998 | const zcu = pt.zcu; |
| 8113 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; | 7999 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; |
| ... | @@ -8164,9 +8050,6 @@ fn zirErrUnionPayloadPtr( | ... | @@ -8164,9 +8050,6 @@ fn zirErrUnionPayloadPtr( |
| 8164 | block: *Block, | 8050 | block: *Block, |
| 8165 | inst: Zir.Inst.Index, | 8051 | inst: Zir.Inst.Index, |
| 8166 | ) CompileError!Air.Inst.Ref { | 8052 | ) CompileError!Air.Inst.Ref { |
| 8167 | const tracy = trace(@src()); | | |
| 8168 | defer tracy.end(); | | |
| 8169 | | | |
| 8170 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; | 8053 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; |
| 8171 | const operand = sema.resolveInst(inst_data.operand); | 8054 | const operand = sema.resolveInst(inst_data.operand); |
| 8172 | const src = block.nodeOffset(inst_data.src_node); | 8055 | const src = block.nodeOffset(inst_data.src_node); |
| ... | @@ -8256,9 +8139,6 @@ fn analyzeErrUnionPayloadPtr( | ... | @@ -8256,9 +8139,6 @@ fn analyzeErrUnionPayloadPtr( |
| 8256 | | 8139 | |
| 8257 | /// Value in, value out | 8140 | /// Value in, value out |
| 8258 | fn zirErrUnionCode(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 8141 | fn zirErrUnionCode(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 8259 | const tracy = trace(@src()); | | |
| 8260 | defer tracy.end(); | | |
| 8261 | | | |
| 8262 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; | 8142 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; |
| 8263 | const src = block.nodeOffset(inst_data.src_node); | 8143 | const src = block.nodeOffset(inst_data.src_node); |
| 8264 | const operand = sema.resolveInst(inst_data.operand); | 8144 | const operand = sema.resolveInst(inst_data.operand); |
| ... | @@ -8292,9 +8172,6 @@ fn analyzeErrUnionCode(sema: *Sema, block: *Block, src: LazySrcLoc, operand: Air | ... | @@ -8292,9 +8172,6 @@ fn analyzeErrUnionCode(sema: *Sema, block: *Block, src: LazySrcLoc, operand: Air |
| 8292 | | 8172 | |
| 8293 | /// Pointer in, value out | 8173 | /// Pointer in, value out |
| 8294 | fn zirErrUnionCodePtr(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 8174 | fn zirErrUnionCodePtr(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 8295 | const tracy = trace(@src()); | | |
| 8296 | defer tracy.end(); | | |
| 8297 | | | |
| 8298 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; | 8175 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; |
| 8299 | const src = block.nodeOffset(inst_data.src_node); | 8176 | const src = block.nodeOffset(inst_data.src_node); |
| 8300 | const operand = sema.resolveInst(inst_data.operand); | 8177 | const operand = sema.resolveInst(inst_data.operand); |
| ... | @@ -9088,9 +8965,6 @@ fn zirParamAnytype( | ... | @@ -9088,9 +8965,6 @@ fn zirParamAnytype( |
| 9088 | } | 8965 | } |
| 9089 | | 8966 | |
| 9090 | fn zirAsNode(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 8967 | fn zirAsNode(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 9091 | const tracy = trace(@src()); | | |
| 9092 | defer tracy.end(); | | |
| 9093 | | | |
| 9094 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; | 8968 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; |
| 9095 | const src = block.nodeOffset(inst_data.src_node); | 8969 | const src = block.nodeOffset(inst_data.src_node); |
| 9096 | const extra = sema.code.extraData(Zir.Inst.As, inst_data.payload_index).data; | 8970 | const extra = sema.code.extraData(Zir.Inst.As, inst_data.payload_index).data; |
| ... | @@ -9098,9 +8972,6 @@ fn zirAsNode(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air. | ... | @@ -9098,9 +8972,6 @@ fn zirAsNode(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air. |
| 9098 | } | 8972 | } |
| 9099 | | 8973 | |
| 9100 | fn zirAsShiftOperand(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 8974 | fn zirAsShiftOperand(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 9101 | const tracy = trace(@src()); | | |
| 9102 | defer tracy.end(); | | |
| 9103 | | | |
| 9104 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; | 8975 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; |
| 9105 | const src = block.nodeOffset(inst_data.src_node); | 8976 | const src = block.nodeOffset(inst_data.src_node); |
| 9106 | const extra = sema.code.extraData(Zir.Inst.As, inst_data.payload_index).data; | 8977 | const extra = sema.code.extraData(Zir.Inst.As, inst_data.payload_index).data; |
| ... | @@ -9136,9 +9007,6 @@ fn analyzeAs( | ... | @@ -9136,9 +9007,6 @@ fn analyzeAs( |
| 9136 | } | 9007 | } |
| 9137 | | 9008 | |
| 9138 | fn zirIntFromPtr(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 9009 | fn zirIntFromPtr(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 9139 | const tracy = trace(@src()); | | |
| 9140 | defer tracy.end(); | | |
| 9141 | | | |
| 9142 | const pt = sema.pt; | 9010 | const pt = sema.pt; |
| 9143 | const zcu = pt.zcu; | 9011 | const zcu = pt.zcu; |
| 9144 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; | 9012 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; |
| ... | @@ -9193,9 +9061,6 @@ fn zirIntFromPtr(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError! | ... | @@ -9193,9 +9061,6 @@ fn zirIntFromPtr(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError! |
| 9193 | } | 9061 | } |
| 9194 | | 9062 | |
| 9195 | fn zirFieldPtrLoad(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 9063 | fn zirFieldPtrLoad(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 9196 | const tracy = trace(@src()); | | |
| 9197 | defer tracy.end(); | | |
| 9198 | | | |
| 9199 | const pt = sema.pt; | 9064 | const pt = sema.pt; |
| 9200 | const zcu = pt.zcu; | 9065 | const zcu = pt.zcu; |
| 9201 | const comp = zcu.comp; | 9066 | const comp = zcu.comp; |
| ... | @@ -9218,9 +9083,6 @@ fn zirFieldPtrLoad(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileErro | ... | @@ -9218,9 +9083,6 @@ fn zirFieldPtrLoad(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileErro |
| 9218 | } | 9083 | } |
| 9219 | | 9084 | |
| 9220 | fn zirFieldPtr(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 9085 | fn zirFieldPtr(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 9221 | const tracy = trace(@src()); | | |
| 9222 | defer tracy.end(); | | |
| 9223 | | | |
| 9224 | const pt = sema.pt; | 9086 | const pt = sema.pt; |
| 9225 | const zcu = pt.zcu; | 9087 | const zcu = pt.zcu; |
| 9226 | const comp = zcu.comp; | 9088 | const comp = zcu.comp; |
| ... | @@ -9243,9 +9105,6 @@ fn zirFieldPtr(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai | ... | @@ -9243,9 +9105,6 @@ fn zirFieldPtr(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai |
| 9243 | } | 9105 | } |
| 9244 | | 9106 | |
| 9245 | fn zirStructInitFieldPtr(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 9107 | fn zirStructInitFieldPtr(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 9246 | const tracy = trace(@src()); | | |
| 9247 | defer tracy.end(); | | |
| 9248 | | | |
| 9249 | const pt = sema.pt; | 9108 | const pt = sema.pt; |
| 9250 | const zcu = pt.zcu; | 9109 | const zcu = pt.zcu; |
| 9251 | const comp = zcu.comp; | 9110 | const comp = zcu.comp; |
| ... | @@ -9276,9 +9135,6 @@ fn zirStructInitFieldPtr(sema: *Sema, block: *Block, inst: Zir.Inst.Index) Compi | ... | @@ -9276,9 +9135,6 @@ fn zirStructInitFieldPtr(sema: *Sema, block: *Block, inst: Zir.Inst.Index) Compi |
| 9276 | } | 9135 | } |
| 9277 | | 9136 | |
| 9278 | fn zirFieldPtrNamedLoad(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 9137 | fn zirFieldPtrNamedLoad(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 9279 | const tracy = trace(@src()); | | |
| 9280 | defer tracy.end(); | | |
| 9281 | | | |
| 9282 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; | 9138 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; |
| 9283 | const src = block.nodeOffset(inst_data.src_node); | 9139 | const src = block.nodeOffset(inst_data.src_node); |
| 9284 | const field_name_src = block.builtinCallArgSrc(inst_data.src_node, 1); | 9140 | const field_name_src = block.builtinCallArgSrc(inst_data.src_node, 1); |
| ... | @@ -9289,9 +9145,6 @@ fn zirFieldPtrNamedLoad(sema: *Sema, block: *Block, inst: Zir.Inst.Index) Compil | ... | @@ -9289,9 +9145,6 @@ fn zirFieldPtrNamedLoad(sema: *Sema, block: *Block, inst: Zir.Inst.Index) Compil |
| 9289 | } | 9145 | } |
| 9290 | | 9146 | |
| 9291 | fn zirFieldPtrNamed(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 9147 | fn zirFieldPtrNamed(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 9292 | const tracy = trace(@src()); | | |
| 9293 | defer tracy.end(); | | |
| 9294 | | | |
| 9295 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; | 9148 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; |
| 9296 | const src = block.nodeOffset(inst_data.src_node); | 9149 | const src = block.nodeOffset(inst_data.src_node); |
| 9297 | const field_name_src = block.builtinCallArgSrc(inst_data.src_node, 1); | 9150 | const field_name_src = block.builtinCallArgSrc(inst_data.src_node, 1); |
| ... | @@ -9302,9 +9155,6 @@ fn zirFieldPtrNamed(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileErr | ... | @@ -9302,9 +9155,6 @@ fn zirFieldPtrNamed(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileErr |
| 9302 | } | 9155 | } |
| 9303 | | 9156 | |
| 9304 | fn zirIntCast(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 9157 | fn zirIntCast(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 9305 | const tracy = trace(@src()); | | |
| 9306 | defer tracy.end(); | | |
| 9307 | | | |
| 9308 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; | 9158 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; |
| 9309 | const src = block.nodeOffset(inst_data.src_node); | 9159 | const src = block.nodeOffset(inst_data.src_node); |
| 9310 | const operand_src = block.builtinCallArgSrc(inst_data.src_node, 0); | 9160 | const operand_src = block.builtinCallArgSrc(inst_data.src_node, 0); |
| ... | @@ -9375,9 +9225,6 @@ fn intCast( | ... | @@ -9375,9 +9225,6 @@ fn intCast( |
| 9375 | } | 9225 | } |
| 9376 | | 9226 | |
| 9377 | fn zirBitcast(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 9227 | fn zirBitcast(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 9378 | const tracy = trace(@src()); | | |
| 9379 | defer tracy.end(); | | |
| 9380 | | | |
| 9381 | const pt = sema.pt; | 9228 | const pt = sema.pt; |
| 9382 | const zcu = pt.zcu; | 9229 | const zcu = pt.zcu; |
| 9383 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; | 9230 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; |
| ... | @@ -9541,9 +9388,6 @@ fn zirBitcast(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air | ... | @@ -9541,9 +9388,6 @@ fn zirBitcast(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air |
| 9541 | } | 9388 | } |
| 9542 | | 9389 | |
| 9543 | fn zirFloatCast(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 9390 | fn zirFloatCast(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 9544 | const tracy = trace(@src()); | | |
| 9545 | defer tracy.end(); | | |
| 9546 | | | |
| 9547 | const pt = sema.pt; | 9391 | const pt = sema.pt; |
| 9548 | const zcu = pt.zcu; | 9392 | const zcu = pt.zcu; |
| 9549 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; | 9393 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; |
| ... | @@ -9609,9 +9453,6 @@ fn zirFloatCast(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!A | ... | @@ -9609,9 +9453,6 @@ fn zirFloatCast(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!A |
| 9609 | } | 9453 | } |
| 9610 | | 9454 | |
| 9611 | fn zirElemVal(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 9455 | fn zirElemVal(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 9612 | const tracy = trace(@src()); | | |
| 9613 | defer tracy.end(); | | |
| 9614 | | | |
| 9615 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; | 9456 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; |
| 9616 | const src = block.nodeOffset(inst_data.src_node); | 9457 | const src = block.nodeOffset(inst_data.src_node); |
| 9617 | const extra = sema.code.extraData(Zir.Inst.Bin, inst_data.payload_index).data; | 9458 | const extra = sema.code.extraData(Zir.Inst.Bin, inst_data.payload_index).data; |
| ... | @@ -9621,9 +9462,6 @@ fn zirElemVal(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air | ... | @@ -9621,9 +9462,6 @@ fn zirElemVal(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air |
| 9621 | } | 9462 | } |
| 9622 | | 9463 | |
| 9623 | fn zirElemPtrLoad(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 9464 | fn zirElemPtrLoad(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 9624 | const tracy = trace(@src()); | | |
| 9625 | defer tracy.end(); | | |
| 9626 | | | |
| 9627 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; | 9465 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; |
| 9628 | const src = block.nodeOffset(inst_data.src_node); | 9466 | const src = block.nodeOffset(inst_data.src_node); |
| 9629 | const elem_index_src = block.src(.{ .node_offset_array_access_index = inst_data.src_node }); | 9467 | const elem_index_src = block.src(.{ .node_offset_array_access_index = inst_data.src_node }); |
| ... | @@ -9643,9 +9481,6 @@ fn zirElemPtrLoad(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError | ... | @@ -9643,9 +9481,6 @@ fn zirElemPtrLoad(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError |
| 9643 | } | 9481 | } |
| 9644 | | 9482 | |
| 9645 | fn zirElemValImm(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 9483 | fn zirElemValImm(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 9646 | const tracy = trace(@src()); | | |
| 9647 | defer tracy.end(); | | |
| 9648 | | | |
| 9649 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].elem_val_imm; | 9484 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].elem_val_imm; |
| 9650 | const array = sema.resolveInst(inst_data.operand); | 9485 | const array = sema.resolveInst(inst_data.operand); |
| 9651 | const elem_index = try sema.pt.intRef(.usize, inst_data.idx); | 9486 | const elem_index = try sema.pt.intRef(.usize, inst_data.idx); |
| ... | @@ -9653,9 +9488,6 @@ fn zirElemValImm(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError! | ... | @@ -9653,9 +9488,6 @@ fn zirElemValImm(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError! |
| 9653 | } | 9488 | } |
| 9654 | | 9489 | |
| 9655 | fn zirElemPtr(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 9490 | fn zirElemPtr(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 9656 | const tracy = trace(@src()); | | |
| 9657 | defer tracy.end(); | | |
| 9658 | | | |
| 9659 | const pt = sema.pt; | 9491 | const pt = sema.pt; |
| 9660 | const zcu = pt.zcu; | 9492 | const zcu = pt.zcu; |
| 9661 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; | 9493 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; |
| ... | @@ -9684,9 +9516,6 @@ fn zirElemPtr(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air | ... | @@ -9684,9 +9516,6 @@ fn zirElemPtr(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air |
| 9684 | } | 9516 | } |
| 9685 | | 9517 | |
| 9686 | fn zirElemPtrNode(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 9518 | fn zirElemPtrNode(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 9687 | const tracy = trace(@src()); | | |
| 9688 | defer tracy.end(); | | |
| 9689 | | | |
| 9690 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; | 9519 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; |
| 9691 | const src = block.nodeOffset(inst_data.src_node); | 9520 | const src = block.nodeOffset(inst_data.src_node); |
| 9692 | const elem_index_src = block.src(.{ .node_offset_array_access_index = inst_data.src_node }); | 9521 | const elem_index_src = block.src(.{ .node_offset_array_access_index = inst_data.src_node }); |
| ... | @@ -9698,9 +9527,6 @@ fn zirElemPtrNode(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError | ... | @@ -9698,9 +9527,6 @@ fn zirElemPtrNode(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError |
| 9698 | } | 9527 | } |
| 9699 | | 9528 | |
| 9700 | fn zirArrayInitElemPtr(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 9529 | fn zirArrayInitElemPtr(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 9701 | const tracy = trace(@src()); | | |
| 9702 | defer tracy.end(); | | |
| 9703 | | | |
| 9704 | const pt = sema.pt; | 9530 | const pt = sema.pt; |
| 9705 | const zcu = pt.zcu; | 9531 | const zcu = pt.zcu; |
| 9706 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; | 9532 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; |
| ... | @@ -9719,9 +9545,6 @@ fn zirArrayInitElemPtr(sema: *Sema, block: *Block, inst: Zir.Inst.Index) Compile | ... | @@ -9719,9 +9545,6 @@ fn zirArrayInitElemPtr(sema: *Sema, block: *Block, inst: Zir.Inst.Index) Compile |
| 9719 | } | 9545 | } |
| 9720 | | 9546 | |
| 9721 | fn zirSliceStart(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 9547 | fn zirSliceStart(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 9722 | const tracy = trace(@src()); | | |
| 9723 | defer tracy.end(); | | |
| 9724 | | | |
| 9725 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; | 9548 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; |
| 9726 | const src = block.nodeOffset(inst_data.src_node); | 9549 | const src = block.nodeOffset(inst_data.src_node); |
| 9727 | const extra = sema.code.extraData(Zir.Inst.SliceStart, inst_data.payload_index).data; | 9550 | const extra = sema.code.extraData(Zir.Inst.SliceStart, inst_data.payload_index).data; |
| ... | @@ -9735,9 +9558,6 @@ fn zirSliceStart(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError! | ... | @@ -9735,9 +9558,6 @@ fn zirSliceStart(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError! |
| 9735 | } | 9558 | } |
| 9736 | | 9559 | |
| 9737 | fn zirSliceEnd(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 9560 | fn zirSliceEnd(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 9738 | const tracy = trace(@src()); | | |
| 9739 | defer tracy.end(); | | |
| 9740 | | | |
| 9741 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; | 9561 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; |
| 9742 | const src = block.nodeOffset(inst_data.src_node); | 9562 | const src = block.nodeOffset(inst_data.src_node); |
| 9743 | const extra = sema.code.extraData(Zir.Inst.SliceEnd, inst_data.payload_index).data; | 9563 | const extra = sema.code.extraData(Zir.Inst.SliceEnd, inst_data.payload_index).data; |
| ... | @@ -9752,9 +9572,6 @@ fn zirSliceEnd(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai | ... | @@ -9752,9 +9572,6 @@ fn zirSliceEnd(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai |
| 9752 | } | 9572 | } |
| 9753 | | 9573 | |
| 9754 | fn zirSliceSentinel(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 9574 | fn zirSliceSentinel(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 9755 | const tracy = trace(@src()); | | |
| 9756 | defer tracy.end(); | | |
| 9757 | | | |
| 9758 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; | 9575 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; |
| 9759 | const src = block.nodeOffset(inst_data.src_node); | 9576 | const src = block.nodeOffset(inst_data.src_node); |
| 9760 | const sentinel_src = block.src(.{ .node_offset_slice_sentinel = inst_data.src_node }); | 9577 | const sentinel_src = block.src(.{ .node_offset_slice_sentinel = inst_data.src_node }); |
| ... | @@ -9771,9 +9588,6 @@ fn zirSliceSentinel(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileErr | ... | @@ -9771,9 +9588,6 @@ fn zirSliceSentinel(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileErr |
| 9771 | } | 9588 | } |
| 9772 | | 9589 | |
| 9773 | fn zirSliceLength(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 9590 | fn zirSliceLength(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 9774 | const tracy = trace(@src()); | | |
| 9775 | defer tracy.end(); | | |
| 9776 | | | |
| 9777 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; | 9591 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; |
| 9778 | const src = block.nodeOffset(inst_data.src_node); | 9592 | const src = block.nodeOffset(inst_data.src_node); |
| 9779 | const extra = sema.code.extraData(Zir.Inst.SliceLength, inst_data.payload_index).data; | 9593 | const extra = sema.code.extraData(Zir.Inst.SliceLength, inst_data.payload_index).data; |
| ... | @@ -9793,9 +9607,6 @@ fn zirSliceLength(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError | ... | @@ -9793,9 +9607,6 @@ fn zirSliceLength(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError |
| 9793 | } | 9607 | } |
| 9794 | | 9608 | |
| 9795 | fn zirSliceSentinelTy(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 9609 | fn zirSliceSentinelTy(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 9796 | const tracy = trace(@src()); | | |
| 9797 | defer tracy.end(); | | |
| 9798 | | | |
| 9799 | const pt = sema.pt; | 9610 | const pt = sema.pt; |
| 9800 | const zcu = pt.zcu; | 9611 | const zcu = pt.zcu; |
| 9801 | | 9612 | |
| ... | @@ -9833,9 +9644,6 @@ fn zirSliceSentinelTy(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileE | ... | @@ -9833,9 +9644,6 @@ fn zirSliceSentinelTy(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileE |
| 9833 | } | 9644 | } |
| 9834 | | 9645 | |
| 9835 | fn zirSwitchBlockErrUnion(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 9646 | fn zirSwitchBlockErrUnion(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 9836 | const tracy = trace(@src()); | | |
| 9837 | defer tracy.end(); | | |
| 9838 | | | |
| 9839 | const pt = sema.pt; | 9647 | const pt = sema.pt; |
| 9840 | const zcu = pt.zcu; | 9648 | const zcu = pt.zcu; |
| 9841 | const gpa = sema.gpa; | 9649 | const gpa = sema.gpa; |
| ... | @@ -9999,8 +9807,6 @@ fn zirSwitchBlock( | ... | @@ -9999,8 +9807,6 @@ fn zirSwitchBlock( |
| 9999 | inst: Zir.Inst.Index, | 9807 | inst: Zir.Inst.Index, |
| 10000 | operand_is_ref: bool, | 9808 | operand_is_ref: bool, |
| 10001 | ) CompileError!Air.Inst.Ref { | 9809 | ) CompileError!Air.Inst.Ref { |
| 10002 | const tracy = trace(@src()); | | |
| 10003 | defer tracy.end(); | | |
| 10004 | const zir_switch = sema.code.getSwitchBlock(inst); | 9810 | const zir_switch = sema.code.getSwitchBlock(inst); |
| 10005 | | 9811 | |
| 10006 | const block_inst: Air.Inst.Index = @enumFromInt(sema.air_instructions.len); | 9812 | const block_inst: Air.Inst.Index = @enumFromInt(sema.air_instructions.len); |
| ... | @@ -12847,9 +12653,6 @@ fn zirHasDecl(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air | ... | @@ -12847,9 +12653,6 @@ fn zirHasDecl(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air |
| 12847 | } | 12653 | } |
| 12848 | | 12654 | |
| 12849 | fn zirImport(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 12655 | fn zirImport(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 12850 | const tracy = trace(@src()); | | |
| 12851 | defer tracy.end(); | | |
| 12852 | | | |
| 12853 | const pt = sema.pt; | 12656 | const pt = sema.pt; |
| 12854 | const zcu = pt.zcu; | 12657 | const zcu = pt.zcu; |
| 12855 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_tok; | 12658 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_tok; |
| ... | @@ -12898,9 +12701,6 @@ fn zirImport(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air. | ... | @@ -12898,9 +12701,6 @@ fn zirImport(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air. |
| 12898 | } | 12701 | } |
| 12899 | | 12702 | |
| 12900 | fn zirEmbedFile(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 12703 | fn zirEmbedFile(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 12901 | const tracy = trace(@src()); | | |
| 12902 | defer tracy.end(); | | |
| 12903 | | | |
| 12904 | const pt = sema.pt; | 12704 | const pt = sema.pt; |
| 12905 | const zcu = pt.zcu; | 12705 | const zcu = pt.zcu; |
| 12906 | | 12706 | |
| ... | @@ -12935,9 +12735,6 @@ fn zirShl( | ... | @@ -12935,9 +12735,6 @@ fn zirShl( |
| 12935 | inst: Zir.Inst.Index, | 12735 | inst: Zir.Inst.Index, |
| 12936 | air_tag: Air.Inst.Tag, | 12736 | air_tag: Air.Inst.Tag, |
| 12937 | ) CompileError!Air.Inst.Ref { | 12737 | ) CompileError!Air.Inst.Ref { |
| 12938 | const tracy = trace(@src()); | | |
| 12939 | defer tracy.end(); | | |
| 12940 | | | |
| 12941 | const pt = sema.pt; | 12738 | const pt = sema.pt; |
| 12942 | const zcu = pt.zcu; | 12739 | const zcu = pt.zcu; |
| 12943 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; | 12740 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; |
| ... | @@ -13125,9 +12922,6 @@ fn zirShr( | ... | @@ -13125,9 +12922,6 @@ fn zirShr( |
| 13125 | inst: Zir.Inst.Index, | 12922 | inst: Zir.Inst.Index, |
| 13126 | air_tag: Air.Inst.Tag, | 12923 | air_tag: Air.Inst.Tag, |
| 13127 | ) CompileError!Air.Inst.Ref { | 12924 | ) CompileError!Air.Inst.Ref { |
| 13128 | const tracy = trace(@src()); | | |
| 13129 | defer tracy.end(); | | |
| 13130 | | | |
| 13131 | const pt = sema.pt; | 12925 | const pt = sema.pt; |
| 13132 | const zcu = pt.zcu; | 12926 | const zcu = pt.zcu; |
| 13133 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; | 12927 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; |
| ... | @@ -13255,9 +13049,6 @@ fn zirBitwise( | ... | @@ -13255,9 +13049,6 @@ fn zirBitwise( |
| 13255 | inst: Zir.Inst.Index, | 13049 | inst: Zir.Inst.Index, |
| 13256 | air_tag: Air.Inst.Tag, | 13050 | air_tag: Air.Inst.Tag, |
| 13257 | ) CompileError!Air.Inst.Ref { | 13051 | ) CompileError!Air.Inst.Ref { |
| 13258 | const tracy = trace(@src()); | | |
| 13259 | defer tracy.end(); | | |
| 13260 | | | |
| 13261 | const pt = sema.pt; | 13052 | const pt = sema.pt; |
| 13262 | const zcu = pt.zcu; | 13053 | const zcu = pt.zcu; |
| 13263 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; | 13054 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; |
| ... | @@ -13438,9 +13229,6 @@ fn analyzeTupleCat( | ... | @@ -13438,9 +13229,6 @@ fn analyzeTupleCat( |
| 13438 | } | 13229 | } |
| 13439 | | 13230 | |
| 13440 | fn zirArrayCat(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 13231 | fn zirArrayCat(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 13441 | const tracy = trace(@src()); | | |
| 13442 | defer tracy.end(); | | |
| 13443 | | | |
| 13444 | const pt = sema.pt; | 13232 | const pt = sema.pt; |
| 13445 | const zcu = pt.zcu; | 13233 | const zcu = pt.zcu; |
| 13446 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; | 13234 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; |
| ... | @@ -13933,9 +13721,6 @@ fn zirArithmetic( | ... | @@ -13933,9 +13721,6 @@ fn zirArithmetic( |
| 13933 | zir_tag: Zir.Inst.Tag, | 13721 | zir_tag: Zir.Inst.Tag, |
| 13934 | safety: bool, | 13722 | safety: bool, |
| 13935 | ) CompileError!Air.Inst.Ref { | 13723 | ) CompileError!Air.Inst.Ref { |
| 13936 | const tracy = trace(@src()); | | |
| 13937 | defer tracy.end(); | | |
| 13938 | | | |
| 13939 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; | 13724 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; |
| 13940 | const src = block.src(.{ .node_offset_bin_op = inst_data.src_node }); | 13725 | const src = block.src(.{ .node_offset_bin_op = inst_data.src_node }); |
| 13941 | const lhs_src = block.src(.{ .node_offset_bin_lhs = inst_data.src_node }); | 13726 | const lhs_src = block.src(.{ .node_offset_bin_lhs = inst_data.src_node }); |
| ... | @@ -14663,9 +14448,6 @@ fn zirOverflowArithmetic( | ... | @@ -14663,9 +14448,6 @@ fn zirOverflowArithmetic( |
| 14663 | extended: Zir.Inst.Extended.InstData, | 14448 | extended: Zir.Inst.Extended.InstData, |
| 14664 | zir_tag: Zir.Inst.Extended, | 14449 | zir_tag: Zir.Inst.Extended, |
| 14665 | ) CompileError!Air.Inst.Ref { | 14450 | ) CompileError!Air.Inst.Ref { |
| 14666 | const tracy = trace(@src()); | | |
| 14667 | defer tracy.end(); | | |
| 14668 | | | |
| 14669 | const extra = sema.code.extraData(Zir.Inst.BinNode, extended.operand).data; | 14451 | const extra = sema.code.extraData(Zir.Inst.BinNode, extended.operand).data; |
| 14670 | const src = block.nodeOffset(extra.node); | 14452 | const src = block.nodeOffset(extra.node); |
| 14671 | | 14453 | |
| ... | @@ -15183,9 +14965,6 @@ fn analyzePtrArithmetic( | ... | @@ -15183,9 +14965,6 @@ fn analyzePtrArithmetic( |
| 15183 | } | 14965 | } |
| 15184 | | 14966 | |
| 15185 | fn zirLoad(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 14967 | fn zirLoad(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 15186 | const tracy = trace(@src()); | | |
| 15187 | defer tracy.end(); | | |
| 15188 | | | |
| 15189 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; | 14968 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; |
| 15190 | const src = block.nodeOffset(inst_data.src_node); | 14969 | const src = block.nodeOffset(inst_data.src_node); |
| 15191 | const ptr_src = src; // TODO better source location | 14970 | const ptr_src = src; // TODO better source location |
| ... | @@ -15199,9 +14978,6 @@ fn zirAsm( | ... | @@ -15199,9 +14978,6 @@ fn zirAsm( |
| 15199 | extended: Zir.Inst.Extended.InstData, | 14978 | extended: Zir.Inst.Extended.InstData, |
| 15200 | tmpl_is_expr: bool, | 14979 | tmpl_is_expr: bool, |
| 15201 | ) CompileError!Air.Inst.Ref { | 14980 | ) CompileError!Air.Inst.Ref { |
| 15202 | const tracy = trace(@src()); | | |
| 15203 | defer tracy.end(); | | |
| 15204 | | | |
| 15205 | const pt = sema.pt; | 14981 | const pt = sema.pt; |
| 15206 | const zcu = pt.zcu; | 14982 | const zcu = pt.zcu; |
| 15207 | const comp = zcu.comp; | 14983 | const comp = zcu.comp; |
| ... | @@ -15393,9 +15169,6 @@ fn zirCmpEq( | ... | @@ -15393,9 +15169,6 @@ fn zirCmpEq( |
| 15393 | op: std.math.CompareOperator, | 15169 | op: std.math.CompareOperator, |
| 15394 | air_tag: Air.Inst.Tag, | 15170 | air_tag: Air.Inst.Tag, |
| 15395 | ) CompileError!Air.Inst.Ref { | 15171 | ) CompileError!Air.Inst.Ref { |
| 15396 | const tracy = trace(@src()); | | |
| 15397 | defer tracy.end(); | | |
| 15398 | | | |
| 15399 | const pt = sema.pt; | 15172 | const pt = sema.pt; |
| 15400 | const zcu = pt.zcu; | 15173 | const zcu = pt.zcu; |
| 15401 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; | 15174 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; |
| ... | @@ -15509,9 +15282,6 @@ fn zirCmp( | ... | @@ -15509,9 +15282,6 @@ fn zirCmp( |
| 15509 | inst: Zir.Inst.Index, | 15282 | inst: Zir.Inst.Index, |
| 15510 | op: std.math.CompareOperator, | 15283 | op: std.math.CompareOperator, |
| 15511 | ) CompileError!Air.Inst.Ref { | 15284 | ) CompileError!Air.Inst.Ref { |
| 15512 | const tracy = trace(@src()); | | |
| 15513 | defer tracy.end(); | | |
| 15514 | | | |
| 15515 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; | 15285 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; |
| 15516 | const extra = sema.code.extraData(Zir.Inst.Bin, inst_data.payload_index).data; | 15286 | const extra = sema.code.extraData(Zir.Inst.Bin, inst_data.payload_index).data; |
| 15517 | const src: LazySrcLoc = block.nodeOffset(inst_data.src_node); | 15287 | const src: LazySrcLoc = block.nodeOffset(inst_data.src_node); |
| ... | @@ -15852,9 +15622,6 @@ fn zirBuiltinSrc( | ... | @@ -15852,9 +15622,6 @@ fn zirBuiltinSrc( |
| 15852 | block: *Block, | 15622 | block: *Block, |
| 15853 | extended: Zir.Inst.Extended.InstData, | 15623 | extended: Zir.Inst.Extended.InstData, |
| 15854 | ) CompileError!Air.Inst.Ref { | 15624 | ) CompileError!Air.Inst.Ref { |
| 15855 | const tracy = trace(@src()); | | |
| 15856 | defer tracy.end(); | | |
| 15857 | | | |
| 15858 | const pt = sema.pt; | 15625 | const pt = sema.pt; |
| 15859 | const zcu = pt.zcu; | 15626 | const zcu = pt.zcu; |
| 15860 | const comp = zcu.comp; | 15627 | const comp = zcu.comp; |
| ... | @@ -17181,9 +16948,6 @@ fn zirTypeofPeer( | ... | @@ -17181,9 +16948,6 @@ fn zirTypeofPeer( |
| 17181 | extended: Zir.Inst.Extended.InstData, | 16948 | extended: Zir.Inst.Extended.InstData, |
| 17182 | inst: Zir.Inst.Index, | 16949 | inst: Zir.Inst.Index, |
| 17183 | ) CompileError!Air.Inst.Ref { | 16950 | ) CompileError!Air.Inst.Ref { |
| 17184 | const tracy = trace(@src()); | | |
| 17185 | defer tracy.end(); | | |
| 17186 | | | |
| 17187 | const extra = sema.code.extraData(Zir.Inst.TypeOfPeer, extended.operand); | 16951 | const extra = sema.code.extraData(Zir.Inst.TypeOfPeer, extended.operand); |
| 17188 | const src = block.nodeOffset(extra.data.src_node); | 16952 | const src = block.nodeOffset(extra.data.src_node); |
| 17189 | const body = sema.code.bodySlice(extra.data.body_index, extra.data.body_len); | 16953 | const body = sema.code.bodySlice(extra.data.body_index, extra.data.body_len); |
| ... | @@ -17249,9 +17013,6 @@ fn zirBoolBr( | ... | @@ -17249,9 +17013,6 @@ fn zirBoolBr( |
| 17249 | inst: Zir.Inst.Index, | 17013 | inst: Zir.Inst.Index, |
| 17250 | is_bool_or: bool, | 17014 | is_bool_or: bool, |
| 17251 | ) CompileError!Air.Inst.Ref { | 17015 | ) CompileError!Air.Inst.Ref { |
| 17252 | const tracy = trace(@src()); | | |
| 17253 | defer tracy.end(); | | |
| 17254 | | | |
| 17255 | const pt = sema.pt; | 17016 | const pt = sema.pt; |
| 17256 | const zcu = pt.zcu; | 17017 | const zcu = pt.zcu; |
| 17257 | const gpa = sema.gpa; | 17018 | const gpa = sema.gpa; |
| ... | @@ -17418,9 +17179,6 @@ fn zirIsNonNull( | ... | @@ -17418,9 +17179,6 @@ fn zirIsNonNull( |
| 17418 | block: *Block, | 17179 | block: *Block, |
| 17419 | inst: Zir.Inst.Index, | 17180 | inst: Zir.Inst.Index, |
| 17420 | ) CompileError!Air.Inst.Ref { | 17181 | ) CompileError!Air.Inst.Ref { |
| 17421 | const tracy = trace(@src()); | | |
| 17422 | defer tracy.end(); | | |
| 17423 | | | |
| 17424 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; | 17182 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; |
| 17425 | const src = block.nodeOffset(inst_data.src_node); | 17183 | const src = block.nodeOffset(inst_data.src_node); |
| 17426 | const operand = sema.resolveInst(inst_data.operand); | 17184 | const operand = sema.resolveInst(inst_data.operand); |
| ... | @@ -17433,9 +17191,6 @@ fn zirIsNonNullPtr( | ... | @@ -17433,9 +17191,6 @@ fn zirIsNonNullPtr( |
| 17433 | block: *Block, | 17191 | block: *Block, |
| 17434 | inst: Zir.Inst.Index, | 17192 | inst: Zir.Inst.Index, |
| 17435 | ) CompileError!Air.Inst.Ref { | 17193 | ) CompileError!Air.Inst.Ref { |
| 17436 | const tracy = trace(@src()); | | |
| 17437 | defer tracy.end(); | | |
| 17438 | | | |
| 17439 | const pt = sema.pt; | 17194 | const pt = sema.pt; |
| 17440 | const zcu = pt.zcu; | 17195 | const zcu = pt.zcu; |
| 17441 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; | 17196 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; |
| ... | @@ -17472,9 +17227,6 @@ fn checkErrorType(sema: *Sema, block: *Block, src: LazySrcLoc, ty: Type) !void { | ... | @@ -17472,9 +17227,6 @@ fn checkErrorType(sema: *Sema, block: *Block, src: LazySrcLoc, ty: Type) !void { |
| 17472 | } | 17227 | } |
| 17473 | | 17228 | |
| 17474 | fn zirIsNonErr(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 17229 | fn zirIsNonErr(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 17475 | const tracy = trace(@src()); | | |
| 17476 | defer tracy.end(); | | |
| 17477 | | | |
| 17478 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; | 17230 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; |
| 17479 | const src = block.nodeOffset(inst_data.src_node); | 17231 | const src = block.nodeOffset(inst_data.src_node); |
| 17480 | const operand = sema.resolveInst(inst_data.operand); | 17232 | const operand = sema.resolveInst(inst_data.operand); |
| ... | @@ -17483,9 +17235,6 @@ fn zirIsNonErr(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai | ... | @@ -17483,9 +17235,6 @@ fn zirIsNonErr(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai |
| 17483 | } | 17235 | } |
| 17484 | | 17236 | |
| 17485 | fn zirIsNonErrPtr(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 17237 | fn zirIsNonErrPtr(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 17486 | const tracy = trace(@src()); | | |
| 17487 | defer tracy.end(); | | |
| 17488 | | | |
| 17489 | const pt = sema.pt; | 17238 | const pt = sema.pt; |
| 17490 | const zcu = pt.zcu; | 17239 | const zcu = pt.zcu; |
| 17491 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; | 17240 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; |
| ... | @@ -17500,9 +17249,6 @@ fn zirIsNonErrPtr(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError | ... | @@ -17500,9 +17249,6 @@ fn zirIsNonErrPtr(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError |
| 17500 | } | 17249 | } |
| 17501 | | 17250 | |
| 17502 | fn zirRetIsNonErr(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 17251 | fn zirRetIsNonErr(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 17503 | const tracy = trace(@src()); | | |
| 17504 | defer tracy.end(); | | |
| 17505 | | | |
| 17506 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; | 17252 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; |
| 17507 | const src = block.nodeOffset(inst_data.src_node); | 17253 | const src = block.nodeOffset(inst_data.src_node); |
| 17508 | const operand = sema.resolveInst(inst_data.operand); | 17254 | const operand = sema.resolveInst(inst_data.operand); |
| ... | @@ -17514,9 +17260,6 @@ fn zirCondbr( | ... | @@ -17514,9 +17260,6 @@ fn zirCondbr( |
| 17514 | parent_block: *Block, | 17260 | parent_block: *Block, |
| 17515 | inst: Zir.Inst.Index, | 17261 | inst: Zir.Inst.Index, |
| 17516 | ) CompileError!void { | 17262 | ) CompileError!void { |
| 17517 | const tracy = trace(@src()); | | |
| 17518 | defer tracy.end(); | | |
| 17519 | | | |
| 17520 | const pt = sema.pt; | 17263 | const pt = sema.pt; |
| 17521 | const zcu = pt.zcu; | 17264 | const zcu = pt.zcu; |
| 17522 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; | 17265 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; |
| ... | @@ -17866,9 +17609,6 @@ fn zirRetImplicit( | ... | @@ -17866,9 +17609,6 @@ fn zirRetImplicit( |
| 17866 | block: *Block, | 17609 | block: *Block, |
| 17867 | inst: Zir.Inst.Index, | 17610 | inst: Zir.Inst.Index, |
| 17868 | ) CompileError!void { | 17611 | ) CompileError!void { |
| 17869 | const tracy = trace(@src()); | | |
| 17870 | defer tracy.end(); | | |
| 17871 | | | |
| 17872 | const pt = sema.pt; | 17612 | const pt = sema.pt; |
| 17873 | const zcu = pt.zcu; | 17613 | const zcu = pt.zcu; |
| 17874 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_tok; | 17614 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_tok; |
| ... | @@ -17913,9 +17653,6 @@ fn zirRetImplicit( | ... | @@ -17913,9 +17653,6 @@ fn zirRetImplicit( |
| 17913 | } | 17653 | } |
| 17914 | | 17654 | |
| 17915 | fn zirRetNode(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!void { | 17655 | fn zirRetNode(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!void { |
| 17916 | const tracy = trace(@src()); | | |
| 17917 | defer tracy.end(); | | |
| 17918 | | | |
| 17919 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; | 17656 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; |
| 17920 | const operand = sema.resolveInst(inst_data.operand); | 17657 | const operand = sema.resolveInst(inst_data.operand); |
| 17921 | const src = block.nodeOffset(inst_data.src_node); | 17658 | const src = block.nodeOffset(inst_data.src_node); |
| ... | @@ -17924,9 +17661,6 @@ fn zirRetNode(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!voi | ... | @@ -17924,9 +17661,6 @@ fn zirRetNode(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!voi |
| 17924 | } | 17661 | } |
| 17925 | | 17662 | |
| 17926 | fn zirRetLoad(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!void { | 17663 | fn zirRetLoad(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!void { |
| 17927 | const tracy = trace(@src()); | | |
| 17928 | defer tracy.end(); | | |
| 17929 | | | |
| 17930 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; | 17664 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; |
| 17931 | const src = block.nodeOffset(inst_data.src_node); | 17665 | const src = block.nodeOffset(inst_data.src_node); |
| 17932 | const ret_ptr = sema.resolveInst(inst_data.operand); | 17666 | const ret_ptr = sema.resolveInst(inst_data.operand); |
| ... | @@ -18071,9 +17805,6 @@ fn zirRestoreErrRetIndex(sema: *Sema, start_block: *Block, extended: Zir.Inst.Ex | ... | @@ -18071,9 +17805,6 @@ fn zirRestoreErrRetIndex(sema: *Sema, start_block: *Block, extended: Zir.Inst.Ex |
| 18071 | /// its state at the point `block` was reached (or, if `block` is `none`, the | 17805 | /// its state at the point `block` was reached (or, if `block` is `none`, the |
| 18072 | /// point this function began execution). | 17806 | /// point this function began execution). |
| 18073 | fn restoreErrRetIndex(sema: *Sema, start_block: *Block, src: LazySrcLoc, target_block: Zir.Inst.Ref, operand_zir: Zir.Inst.Ref) CompileError!void { | 17807 | fn restoreErrRetIndex(sema: *Sema, start_block: *Block, src: LazySrcLoc, target_block: Zir.Inst.Ref, operand_zir: Zir.Inst.Ref) CompileError!void { |
| 18074 | const tracy = trace(@src()); | | |
| 18075 | defer tracy.end(); | | |
| 18076 | | | |
| 18077 | const pt = sema.pt; | 17808 | const pt = sema.pt; |
| 18078 | const zcu = pt.zcu; | 17809 | const zcu = pt.zcu; |
| 18079 | | 17810 | |
| ... | @@ -18229,9 +17960,6 @@ fn floatOpAllowed(tag: Zir.Inst.Tag) bool { | ... | @@ -18229,9 +17960,6 @@ fn floatOpAllowed(tag: Zir.Inst.Tag) bool { |
| 18229 | } | 17960 | } |
| 18230 | | 17961 | |
| 18231 | fn zirPtrType(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 17962 | fn zirPtrType(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 18232 | const tracy = trace(@src()); | | |
| 18233 | defer tracy.end(); | | |
| 18234 | | | |
| 18235 | const pt = sema.pt; | 17963 | const pt = sema.pt; |
| 18236 | const zcu = pt.zcu; | 17964 | const zcu = pt.zcu; |
| 18237 | const comp = zcu.comp; | 17965 | const comp = zcu.comp; |
| ... | @@ -18361,9 +18089,6 @@ fn zirPtrType(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air | ... | @@ -18361,9 +18089,6 @@ fn zirPtrType(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air |
| 18361 | } | 18089 | } |
| 18362 | | 18090 | |
| 18363 | fn zirStructInitEmpty(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 18091 | fn zirStructInitEmpty(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 18364 | const tracy = trace(@src()); | | |
| 18365 | defer tracy.end(); | | |
| 18366 | | | |
| 18367 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; | 18092 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; |
| 18368 | const src = block.nodeOffset(inst_data.src_node); | 18093 | const src = block.nodeOffset(inst_data.src_node); |
| 18369 | const ty_src = block.src(.{ .node_offset_init_ty = inst_data.src_node }); | 18094 | const ty_src = block.src(.{ .node_offset_init_ty = inst_data.src_node }); |
| ... | @@ -18382,9 +18107,6 @@ fn zirStructInitEmpty(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileE | ... | @@ -18382,9 +18107,6 @@ fn zirStructInitEmpty(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileE |
| 18382 | } | 18107 | } |
| 18383 | | 18108 | |
| 18384 | fn zirStructInitEmptyResult(sema: *Sema, block: *Block, inst: Zir.Inst.Index, is_byref: bool) CompileError!Air.Inst.Ref { | 18109 | fn zirStructInitEmptyResult(sema: *Sema, block: *Block, inst: Zir.Inst.Index, is_byref: bool) CompileError!Air.Inst.Ref { |
| 18385 | const tracy = trace(@src()); | | |
| 18386 | defer tracy.end(); | | |
| 18387 | | | |
| 18388 | const pt = sema.pt; | 18110 | const pt = sema.pt; |
| 18389 | const zcu = pt.zcu; | 18111 | const zcu = pt.zcu; |
| 18390 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; | 18112 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; |
| ... | @@ -19622,9 +19344,6 @@ fn zirUnaryMath( | ... | @@ -19622,9 +19344,6 @@ fn zirUnaryMath( |
| 19622 | air_tag: Air.Inst.Tag, | 19344 | air_tag: Air.Inst.Tag, |
| 19623 | comptime eval: fn (Value, Type, Allocator, Zcu.PerThread) Allocator.Error!Value, | 19345 | comptime eval: fn (Value, Type, Allocator, Zcu.PerThread) Allocator.Error!Value, |
| 19624 | ) CompileError!Air.Inst.Ref { | 19346 | ) CompileError!Air.Inst.Ref { |
| 19625 | const tracy = trace(@src()); | | |
| 19626 | defer tracy.end(); | | |
| 19627 | | | |
| 19628 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; | 19347 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].un_node; |
| 19629 | const operand = sema.resolveInst(inst_data.operand); | 19348 | const operand = sema.resolveInst(inst_data.operand); |
| 19630 | const operand_src = block.builtinCallArgSrc(inst_data.src_node, 0); | 19349 | const operand_src = block.builtinCallArgSrc(inst_data.src_node, 0); |
| ... | @@ -23441,9 +23160,6 @@ fn zirMulAdd(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air. | ... | @@ -23441,9 +23160,6 @@ fn zirMulAdd(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air. |
| 23441 | } | 23160 | } |
| 23442 | | 23161 | |
| 23443 | fn zirBuiltinCall(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 23162 | fn zirBuiltinCall(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 23444 | const tracy = trace(@src()); | | |
| 23445 | defer tracy.end(); | | |
| 23446 | | | |
| 23447 | const pt = sema.pt; | 23163 | const pt = sema.pt; |
| 23448 | const zcu = pt.zcu; | 23164 | const zcu = pt.zcu; |
| 23449 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; | 23165 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; |
| ... | @@ -24489,9 +24205,6 @@ fn zirResume(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air. | ... | @@ -24489,9 +24205,6 @@ fn zirResume(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air. |
| 24489 | } | 24205 | } |
| 24490 | | 24206 | |
| 24491 | fn zirFuncFancy(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { | 24207 | fn zirFuncFancy(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.Inst.Ref { |
| 24492 | const tracy = trace(@src()); | | |
| 24493 | defer tracy.end(); | | |
| 24494 | | | |
| 24495 | const pt = sema.pt; | 24208 | const pt = sema.pt; |
| 24496 | const zcu = pt.zcu; | 24209 | const zcu = pt.zcu; |
| 24497 | const comp = zcu.comp; | 24210 | const comp = zcu.comp; |