-
Notifications
You must be signed in to change notification settings - Fork 61
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
Cleanup refactoring #172
Comments
Time was, the only operand type that used both of its underlying 64-bit registers was MoffsXXX. Now that we store type info in the upper quad, this is true of all operands. This means we don't need to explicitly redefine comparison and equality operators for every class. For that matter... since all the operand class really is internally is an std pair, we don't need to define this stuff anywhere. We can just inherit from std::pair. |
The same is true of EnvReg and EnvBits. |
There's also lots of places where we do bit masking and I'm finding errors here and there. I'm going to refactor all of this bit setting/getting into operand. |
There's a lot of friendship floating around which should probably be reduced. Some of it can be fixed with API calls, some of it is just there for historical reasons and not necessary anymore. I'll remove. |
Reopening this since I never successfully merged it. |
There are lots of places where the code can be cleaned up given some of the changes that have happened over the last year. I'll make this and report back to this ticket as I go.
The text was updated successfully, but these errors were encountered: