mirror of
https://github.com/RRZE-HPC/OSACA.git
synced 2026-01-04 18:20:09 +01:00
moved get_full_instruction_name() from HardwareModel to DBInterface
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user