-
Notifications
You must be signed in to change notification settings - Fork 15.3k
[clang][llvm][aarch64] Add aarch64_sme_in_streaming_mode intrinsic #120265
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
NickGuy-Arm
merged 6 commits into
llvm:main
from
NickGuy-Arm:sme-streaming-mode-intrinsic
Jan 7, 2025
Merged
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
898c30b
[clang][llvm][aarch64] Add aarch64_sme_in_streaming_mode intrinsic
NickGuy-Arm 20701ac
Remove redundant __arm_in_streaming_mode declaration
NickGuy-Arm 453324a
Replaced auto with actual types
NickGuy-Arm 0eca79f
Address comments
NickGuy-Arm afaf447
Address nits and update test
NickGuy-Arm ba489f4
Format
NickGuy-Arm 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
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 |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py | ||
| ; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sme -verify-machineinstrs < %s | FileCheck %s | ||
|
|
||
|
|
||
| define i1 @streaming_mode_st_compatible() #0 { | ||
NickGuy-Arm marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ; CHECK-LABEL: streaming_mode_st_compatible: | ||
| ; CHECK: // %bb.0: | ||
| ; CHECK-NEXT: str x30, [sp, #-16]! // 8-byte Folded Spill | ||
| ; CHECK-NEXT: bl __arm_sme_state | ||
| ; CHECK-NEXT: and w0, w0, #0x1 | ||
| ; CHECK-NEXT: ldr x30, [sp], #16 // 8-byte Folded Reload | ||
| ; CHECK-NEXT: ret | ||
| %mode = tail call noundef i1 @llvm.aarch64.sme.in.streaming.mode() | ||
| ret i1 %mode | ||
| } | ||
|
|
||
| define i1 @streaming_mode_st_enabled() #1 { | ||
| ; CHECK-LABEL: streaming_mode_st_enabled: | ||
| ; CHECK: // %bb.0: | ||
| ; CHECK-NEXT: str x30, [sp, #-16]! // 8-byte Folded Spill | ||
| ; CHECK-NEXT: bl __arm_sme_state | ||
| ; CHECK-NEXT: and w0, w0, #0x1 | ||
| ; CHECK-NEXT: ldr x30, [sp], #16 // 8-byte Folded Reload | ||
| ; CHECK-NEXT: ret | ||
| %mode = tail call noundef i1 @llvm.aarch64.sme.in.streaming.mode() | ||
| ret i1 %mode | ||
| } | ||
|
|
||
| define i1 @streaming_mode_st_disabled() #2 { | ||
| ; CHECK-LABEL: streaming_mode_st_disabled: | ||
| ; CHECK: // %bb.0: | ||
| ; CHECK-NEXT: str x30, [sp, #-16]! // 8-byte Folded Spill | ||
| ; CHECK-NEXT: bl __arm_sme_state | ||
| ; CHECK-NEXT: and w0, w0, #0x1 | ||
| ; CHECK-NEXT: ldr x30, [sp], #16 // 8-byte Folded Reload | ||
| ; CHECK-NEXT: ret | ||
| %mode = tail call noundef i1 @llvm.aarch64.sme.in.streaming.mode() | ||
| ret i1 %mode | ||
| } | ||
|
|
||
NickGuy-Arm marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| attributes #0 = {nounwind memory(none) "aarch64_pstate_sm_compatible"} | ||
| attributes #1 = {nounwind memory(none) "aarch64_pstate_sm_enabled"} | ||
| attributes #2 = {nounwind memory(none)} | ||
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.
Uh oh!
There was an error while loading. Please reload this page.