-
Notifications
You must be signed in to change notification settings - Fork 15.4k
[NFC][SPIRV] Add AMDGCN SPIR-V specific defaults to the BE #165815
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 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
3e0abe1
Add pass which forwards unimplemented math builtins / libcalls to the…
AlexVlx 6ac96c6
Merge branch 'main' of https://github.com/llvm/llvm-project
AlexVlx 92749f7
Merge branch 'main' of https://github.com/llvm/llvm-project
AlexVlx 2d9a794
Merge branch 'main' of https://github.com/llvm/llvm-project
AlexVlx 0e331b5
Merge branch 'main' of https://github.com/llvm/llvm-project
AlexVlx f97d25d
Merge branch 'main' of https://github.com/llvm/llvm-project
AlexVlx 2d43a92
Merge branch 'main' of https://github.com/llvm/llvm-project
AlexVlx 1ead36f
Merge branch 'main' of https://github.com/llvm/llvm-project
AlexVlx f74c828
Merge branch 'main' of https://github.com/llvm/llvm-project
AlexVlx 83dbc0d
Merge branch 'main' of https://github.com/llvm/llvm-project
AlexVlx 4255cdd
Merge branch 'main' of https://github.com/llvm/llvm-project
AlexVlx de81a63
Merge branch 'main' of https://github.com/llvm/llvm-project
AlexVlx 2e9bc21
Add AMDGCN flavoured SPIR-V specific bits to the BE: generator number…
AlexVlx a6d9df5
Merge remote-tracking branch 'upstream/main' into spirv_be_staging
AlexVlx 00ffdaa
Fix formatting.
AlexVlx acd6bb0
Fix bug.
AlexVlx 94cad95
Reformat switch for readability.
AlexVlx b749107
Merge branch 'main' into spirv_be_staging
AlexVlx 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
Some comments aren't visible on the classic Files Changed page.
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
2 changes: 2 additions & 0 deletions
2
llvm/test/CodeGen/SPIRV/physical-layout/generator-magic-number.ll
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 |
|---|---|---|
| @@ -1,4 +1,6 @@ | ||
| ; REQUIRES: spirv-tools | ||
| ; RUN: llc -O0 -mtriple=spirv-unknown-unknown %s -o - --filetype=obj | spirv-dis | FileCheck %s | ||
| ; RUN: llc -O0 -mtriple=spirv64-amd-amdhsa %s -o - --filetype=obj | spirv-dis | FileCheck --check-prefix=AMDGCNSPIRV %s | ||
|
|
||
| ; CHECK: Generator: {{.*}}{{43|LLVM SPIR-V Backend}}{{.*}} | ||
| ; AMDGCNSPIRV: Generator: {{.*}}{{65535|LLVM SPIR-V Backend}}{{.*}} |
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 |
|---|---|---|
|
|
@@ -6,6 +6,7 @@ | |
| ; RUN: llc -O0 -mtriple=spirv64v1.4-unknown-unknown %s -o - --filetype=obj | spirv-dis | FileCheck %s --check-prefix=CHECK-SPIRV14 | ||
| ; RUN: llc -O0 -mtriple=spirv64v1.5-unknown-unknown %s -o - --filetype=obj | spirv-dis | FileCheck %s --check-prefix=CHECK-SPIRV15 | ||
| ; RUN: llc -O0 -mtriple=spirv64v1.6-unknown-unknown %s -o - --filetype=obj | spirv-dis | FileCheck %s --check-prefix=CHECK-SPIRV16 | ||
| ; RUN: llc -O0 -mtriple=spirv64-amd-amdhsa %s -o - --filetype=obj | spirv-dis | FileCheck %s --check-prefix=AMDGCNSPIRV | ||
|
Contributor
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. Extremely minor: |
||
|
|
||
| ; CHECK-SPIRV10: Version: 1.0 | ||
| ; CHECK-SPIRV11: Version: 1.1 | ||
|
|
@@ -14,3 +15,4 @@ | |
| ; CHECK-SPIRV14: Version: 1.4 | ||
| ; CHECK-SPIRV15: Version: 1.5 | ||
| ; CHECK-SPIRV16: Version: 1.6 | ||
| ; AMDGCNSPIRV: Version: 1.6 | ||
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.
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 wonder if this condition can be moved inside the pass. Maybe in the future... (or may be we can turn it on from the driver).