Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to preprocessor functions #17

Merged
merged 3 commits into from
Dec 21, 2024
Merged

Conversation

cheng-alvin
Copy link
Owner

@cheng-alvin cheng-alvin commented Dec 21, 2024

This pull request describes the changes of removing and renaming of redundant pre processor functions, namely the pre_default pre processor function has been removed from many OP_ZO encoder identities due to its redundant nature, causing it to be 'doubled up' with the op_identify() function.

Some pre-processor function calls for instruction encoder identities
such as `ZO`. Previously the `pre_default()` pre processor function
was called to check if the operand sizes are the same; However in
this special edge case where there are *no* operands, we can simply
ignore this behaviour.
The previous name of `pre_default` seemed *too general* and infered
that this is the default behavior of the assembler, however desc-
ribing the pre processor function as `same_operand_sizes` more ac-
curatly encapsulates the expected behavior instead of needing to
skim over the code before adding it.
@cheng-alvin cheng-alvin added the enhancement New feature or request label Dec 21, 2024
@cheng-alvin cheng-alvin merged commit 51ae5fc into main Dec 21, 2024
3 checks passed
@cheng-alvin cheng-alvin deleted the remove-redundant-pre-functions branch December 21, 2024 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant