Dump now converts classes to dicts

This commit is contained in:
stefandesouza
2024-03-05 00:18:45 +01:00
parent 38781ecc94
commit 5f9de2c41d
10 changed files with 67 additions and 38 deletions

View File

@@ -150,7 +150,7 @@ def _get_asmbench_output(input_data, isa):
operands = [_create_db_operand(op, isa) for op in operands]
entry = InstructionForm(
mnemonic=mnemonic_parsed,
operands_id=operands,
operands=operands,
throughput=_validate_measurement(float(input_data[i + 2].split()[1]), "tp"),
latency=_validate_measurement(float(input_data[i + 1].split()[1]), "lt"),
port_pressure=None,
@@ -181,7 +181,7 @@ def _get_ibench_output(input_data, isa):
operands = [_create_db_operand(op, isa) for op in operands]
entry = InstructionForm(
mnemonic=mnemonic_parsed,
operands_id=operands,
operands=operands,
throughput=None,
latency=None,
port_pressure=None,