-
Notifications
You must be signed in to change notification settings - Fork 15.3k
[AArch64][SVE] Improve fixed-length addressing modes. #129732
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 from 7 commits
624d1e9
85921fc
7ea47e5
25cee06
07d5584
2becfc6
9329a30
c3ee9c7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -391,7 +391,7 @@ class AArch64Subtarget final : public AArch64GenSubtargetInfo { | |
| void mirFileLoaded(MachineFunction &MF) const override; | ||
|
|
||
| // Return the known range for the bit length of SVE data registers. A value | ||
| // of 0 means nothing is known about that particular limit beyong what's | ||
| // of 0 means nothing is known about that particular limit beyond what's | ||
| // implied by the architecture. | ||
| unsigned getMaxSVEVectorSizeInBits() const { | ||
| assert(isSVEorStreamingSVEAvailable() && | ||
|
|
@@ -405,6 +405,17 @@ class AArch64Subtarget final : public AArch64GenSubtargetInfo { | |
| return MinSVEVectorSizeInBits; | ||
| } | ||
|
|
||
| // Return the known bit length of SVE data registers. A value of 0 means the | ||
| // length is unkown beyond what's implied by the architecture. | ||
| unsigned getSVEVectorSizeInBits() const { | ||
| assert(isSVEorStreamingSVEAvailable() && | ||
| "Tried to get SVE vector length without SVE support!"); | ||
| if (MaxSVEVectorSizeInBits && | ||
| MinSVEVectorSizeInBits == MaxSVEVectorSizeInBits) | ||
|
||
| return MaxSVEVectorSizeInBits; | ||
| return 0; | ||
| } | ||
|
|
||
| bool useSVEForFixedLengthVectors() const { | ||
| if (!isSVEorStreamingSVEAvailable()) | ||
| return false; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.