Skip to content

Refactor S390 instruction logging #8207

@matthewhall2

Description

@matthewhall2

Z currently uses a big switch-case with typecasting when printing instructions, i.e.

case TR::Instruction::IsRSLb:
            print(log, (TR::S390RSLbInstruction *)instr);
            break;
case TR::Instruction::IsRSY:
            print(log, (TR::S390RSInstruction *)instr);
            break;
case TR::Instruction::IsRX:
            print(log, (TR::S390RXInstruction *)instr);
            break;

which are all defined in omr/compiler/ras/Debug.hpp.

These can all be refactored to TR::Instruction::print overloads.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions