aboutsummaryrefslogtreecommitdiff
path: root/src/ir_print.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir_print.cpp')
-rw-r--r--src/ir_print.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp
index 9ea70ba7ab..3a77e92bc7 100644
--- a/src/ir_print.cpp
+++ b/src/ir_print.cpp
@@ -1503,6 +1503,16 @@ static void ir_print_union_init_named_field(IrPrint *irp, IrInstructionUnionInit
fprintf(irp->f, ")");
}
+static void ir_print_suspend_begin(IrPrint *irp, IrInstructionSuspendBegin *instruction) {
+ fprintf(irp->f, "@suspendBegin()");
+}
+
+static void ir_print_suspend_br(IrPrint *irp, IrInstructionSuspendBr *instruction) {
+ fprintf(irp->f, "@suspendBr(");
+ ir_print_other_block(irp, instruction->resume_block);
+ fprintf(irp->f, ")");
+}
+
static void ir_print_instruction(IrPrint *irp, IrInstruction *instruction) {
ir_print_prefix(irp, instruction);
switch (instruction->id) {
@@ -1961,6 +1971,12 @@ static void ir_print_instruction(IrPrint *irp, IrInstruction *instruction) {
case IrInstructionIdUnionInitNamedField:
ir_print_union_init_named_field(irp, (IrInstructionUnionInitNamedField *)instruction);
break;
+ case IrInstructionIdSuspendBegin:
+ ir_print_suspend_begin(irp, (IrInstructionSuspendBegin *)instruction);
+ break;
+ case IrInstructionIdSuspendBr:
+ ir_print_suspend_br(irp, (IrInstructionSuspendBr *)instruction);
+ break;
}
fprintf(irp->f, "\n");
}