-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Addded `instr_get_tab()` This commit added the `instr_get_tab()` function, this function takes in the instruction in a `instruction_t` form and outputs the instruction encoder tables required based off the instruction's encooder identity from the `op_identify()` function implemented in C++ in the `operand.cpp` file. This function encapsulates the responsibilties of the `assemble()` function and allows further optimisations by caching certain data, but also allows it to be exposed to the callers of the library * Integrated encoder lookup with `instr_get_tab()` As implemented in commit d382803, a new function has taken over the looking up of the instruction encder reference tables, this commit describes the changes required to migrate the previous code and leveraging the new `instr_get_tab()` funciton. Now, the tables returned from the `instr_get_tab` can be cached and other encoding instances (Since there are two passes of the assemb- ler, one pre and one normal pass)inside the `assemble()` function may reference the passed down `tabs` argument, preventing the dup- licate invokation of the searching of the instruction encoder ref- erence tables. (Well, yea its a small small optimisation but it could potentially save time when indexing large sets of instructions) * Moved over `IS_LABEL` and added function def Since the `IS_LABEL` macro is used in many modules, namely the `codegen` and `instruction` modules, it has been exposed in this header file. More consideration will be given to its exact "res- ting place" in the future, this is just a place to stash a dec for now until a new place is found. Also, the corrisponding `instr_get_tab()` function, although lacking documentation has been declared in this header file to allow the `codegen` module among many other external modules and library users to access the function in 1950a53: > migrate the previous code and leveraging the new `instr_get_tab()` > [function]. * Added previously missing documentation This commit added the previously missing documentation messages that documented the functionality and parameters of the `instr_ get_tabs()` function
- Loading branch information
1 parent
44ff998
commit e908290
Showing
3 changed files
with
73 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters