Add a return_reg instruction to the base instruction set.

Register-style return is used by all RISC architectures, so it is
natural to have a shared instruction representation.
This commit is contained in:
Jakob Stoklund Olesen
2017-02-21 13:05:17 -08:00
parent 22bc33fa05
commit b6fa40d6a3
6 changed files with 75 additions and 4 deletions

View File

@@ -52,7 +52,7 @@ IndirectCall = InstructionFormat(
sig_ref, VALUE, VARIABLE_ARGS,
multiple_results=True, boxed_storage=True)
Return = InstructionFormat(VARIABLE_ARGS, boxed_storage=True)
ReturnReg = InstructionFormat(VALUE, VARIABLE_ARGS, boxed_storage=True)
# Finally extract the names of global variables in this module.
InstructionFormat.extract_names(globals())