(func_ir: FuncIR, names: dict[Value, str])
| 377 | |
| 378 | |
| 379 | def format_registers(func_ir: FuncIR, names: dict[Value, str]) -> list[str]: |
| 380 | result = [] |
| 381 | i = 0 |
| 382 | regs = all_values_full(func_ir.arg_regs, func_ir.blocks) |
| 383 | while i < len(regs): |
| 384 | i0 = i |
| 385 | group = [names[regs[i0]]] |
| 386 | while i + 1 < len(regs) and regs[i + 1].type == regs[i0].type: |
| 387 | i += 1 |
| 388 | group.append(names[regs[i]]) |
| 389 | i += 1 |
| 390 | result.append("{} :: {}".format(", ".join(group), regs[i0].type)) |
| 391 | return result |
| 392 | |
| 393 | |
| 394 | def format_blocks( |
no test coverage detected
searching dependent graphs…