-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Handle more than 64 registers - Part 5 #103188
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
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
4f81f69
first cut
kunalspathak c8f9b15
make clrjit/clrjit_universal_arm64_x64 working, introduce SRBM_*
kunalspathak e150ec5
make clrjit_universal_arm_x64 build
kunalspathak f7e759f
make everything else build
kunalspathak f887a6d
fix some static asserts
kunalspathak c50b029
jit format
kunalspathak a3bea88
minor static assert fix
kunalspathak 2e2d48c
Remove RegMaskTP_NONE
kunalspathak bbf7da1
fix some build errors
kunalspathak 80b658c
jit format
kunalspathak 8ee0adc
some more fixes
kunalspathak 1534499
Use regMaskTP for kill RefPositions
kunalspathak 73d011b
Merge remote-tracking branch 'origin/main' into part5
kunalspathak f5ceca1
fix a typo
kunalspathak 21e3c2f
Fix build errors for riscv64/loongarch64
kunalspathak b68f2d3
try to fix gcc errors
kunalspathak 7f5a542
jit format
kunalspathak 3d02d69
Revert "try to fix gcc errors"
kunalspathak f1b00a6
fix gcc build failure
kunalspathak 491da62
minor code cleanup
kunalspathak b64e835
review comments
kunalspathak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6867,9 +6867,9 @@ void emitter::emitDispRegmask(int imm, bool encodedPC_LR) | |
| } | ||
| else | ||
| { | ||
| hasPC = (imm & RBM_PC) != 0; | ||
| hasLR = (imm & RBM_LR) != 0; | ||
| imm &= ~(RBM_PC | RBM_LR); | ||
| hasPC = (imm & SRBM_PC) != 0; | ||
| hasLR = (imm & SRBM_LR) != 0; | ||
| imm &= ~(SRBM_PC | SRBM_LR); | ||
|
Comment on lines
+6870
to
+6872
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess this means there is (and was) an invariant on the exact indices defined for these registers?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. probably. |
||
| } | ||
|
|
||
| regNumber reg = REG_R0; | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can make
IsRegNumInMaskconstexprto make this a bit more natural (feel free to do as part of a follow-up).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried doing that, but as a cascade effect I need to make
genSingleTypeRegSet,getRegForType(), etc. asconstexprwhich I am not sure is worth doing for just an assert. Will pass this on for now.