moved get_full_instruction_name() from HardwareModel to DBInterface

This commit is contained in:
JanLJL
2024-05-02 16:25:41 +02:00
parent 78309574ac
commit 5da00d0ae6
4 changed files with 34 additions and 26 deletions

View File

@@ -602,6 +602,12 @@ def _get_full_instruction_name(instruction_form):
if op.shape is not None:
op_attrs.append("shape:" + op.shape)
operands.append("{}({})".format("register", ",".join(op_attrs)))
elif isinstance(op, MemoryOperand):
operands.append("mem")
elif isinstance(op, ImmediateOperand):
operands.append("imd")
else:
operands.append("<op>")
return "{} {}".format(instruction_form["name"].lower(), ",".join(operands))