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

Refactor instruction definitions from macros to classes #302

Merged
merged 64 commits into from
Oct 5, 2023

Conversation

raccog
Copy link
Contributor

@raccog raccog commented Sep 22, 2023

Draft branch for #301.

src/assembler/rvassembler_common.h Outdated Show resolved Hide resolved
src/assembler/rvassembler_common.h Outdated Show resolved Hide resolved
src/assembler/rvassembler_common.h Outdated Show resolved Hide resolved
@raccog raccog marked this pull request as ready for review September 29, 2023 17:51
Copy link
Owner

@mortbopet mortbopet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's quite a few additional lines, but that were to be expected. I suspect changing these to structs (removes the public keyword) and potentially removing the Reg_T templating in the future, that will cut out a lot of the boilerplate in these files.

src/assembler/rvassembler_common.h Outdated Show resolved Hide resolved
src/assembler/rvassembler_common.h Outdated Show resolved Hide resolved
Copy link
Owner

@mortbopet mortbopet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM apart from the naming nit.

src/assembler/rv_c_ext.h Outdated Show resolved Hide resolved
@mortbopet
Copy link
Owner

Tip: most editors can enable clang-format on save (e.g. VSCode with https://marketplace.visualstudio.com/items?itemName=xaver.clang-format). Then you'll never run into CI complaining about it!

@raccog
Copy link
Contributor Author

raccog commented Oct 4, 2023

I have clang-format enabled on save in Qt Creator but it wouldn't format rv_c_ext.h for some reason. I had to format it manually with the command lol. Anyways, should be all set now.

@mortbopet mortbopet merged commit 27fcc58 into mortbopet:master Oct 5, 2023
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants