Skip to content

[mono] Refactor switch statements in process_bb to reduce redundancy #101412

Closed as not planned
@kotlarmilos

Description

@kotlarmilos

Description

The process_bb function in mini-llvm.c contains about 80 switch statements within switch (ins->opcode) {. The goal is to reduce code redundancy by introducing helper functions. To achieve this, the first step is to identify patterns and common operations within the switch cases. Each pattern should be encapsulated into a helper function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions