| ... | @@ -16807,11 +16807,22 @@ static TypeTableEntry *ir_analyze_instruction_cancel(IrAnalyze *ira, IrInstructi | ... | @@ -16807,11 +16807,22 @@ static TypeTableEntry *ir_analyze_instruction_cancel(IrAnalyze *ira, IrInstructi |
| 16807 | } | 16807 | } |
| 16808 | | 16808 | |
| 16809 | static TypeTableEntry *ir_analyze_instruction_coro_id(IrAnalyze *ira, IrInstructionCoroId *instruction) { | 16809 | static TypeTableEntry *ir_analyze_instruction_coro_id(IrAnalyze *ira, IrInstructionCoroId *instruction) { |
| 16810 | zig_panic("TODO ir_analyze_instruction_coro_id"); | 16810 | IrInstruction *result = ir_build_coro_id(&ira->new_irb, instruction->base.scope, instruction->base.source_node); |
| | 16811 | ir_link_new_instruction(result, &instruction->base); |
| | 16812 | result->value.type = ira->codegen->builtin_types.entry_usize; |
| | 16813 | return result->value.type; |
| 16811 | } | 16814 | } |
| 16812 | | 16815 | |
| 16813 | static TypeTableEntry *ir_analyze_instruction_coro_alloc(IrAnalyze *ira, IrInstructionCoroAlloc *instruction) { | 16816 | static TypeTableEntry *ir_analyze_instruction_coro_alloc(IrAnalyze *ira, IrInstructionCoroAlloc *instruction) { |
| 16814 | zig_panic("TODO ir_analyze_instruction_coro_alloc"); | 16817 | IrInstruction *coro_id = instruction->coro_id->other; |
| | 16818 | if (type_is_invalid(coro_id->value.type)) |
| | 16819 | return ira->codegen->builtin_types.entry_invalid; |
| | 16820 | |
| | 16821 | IrInstruction *result = ir_build_coro_alloc(&ira->new_irb, instruction->base.scope, instruction->base.source_node, |
| | 16822 | coro_id); |
| | 16823 | ir_link_new_instruction(result, &instruction->base); |
| | 16824 | result->value.type = ira->codegen->builtin_types.entry_bool; |
| | 16825 | return result->value.type; |
| 16815 | } | 16826 | } |
| 16816 | | 16827 | |
| 16817 | static TypeTableEntry *ir_analyze_instruction_coro_size(IrAnalyze *ira, IrInstructionCoroSize *instruction) { | 16828 | static TypeTableEntry *ir_analyze_instruction_coro_size(IrAnalyze *ira, IrInstructionCoroSize *instruction) { |