-
Notifications
You must be signed in to change notification settings - Fork 14.8k
[DirectX] Set function-level flag Int64Ops in DXIL Shader Flags Analysis #129089
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 2 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
609a82a
Set function-level flag Int64Ops in DXIL Shader Flags Analysis
Icohedron 7edbef5
Apply clang-format
Icohedron 4f09a48
Use isIntegerTy(64) to check for 64-bit integer type
Icohedron 0dafdf6
Merge remote-tracking branch 'upstream/main' into shader-flag-int64ops
Icohedron 77379d6
Ignore i64 ConstantInt indices from ExtractElement and InsertElement …
Icohedron 5f084f0
Revert "Ignore i64 ConstantInt indices from ExtractElement and Insert…
Icohedron a338575
Merge remote-tracking branch 'upstream/main' into shader-flag-int64ops
Icohedron 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
; RUN: opt -S --passes="print-dx-shader-flags" 2>&1 %s | FileCheck %s | ||
; RUN: llc %s --filetype=obj -o - | obj2yaml | FileCheck %s --check-prefix=DXC | ||
|
||
target triple = "dxil-pc-shadermodel6.7-library" | ||
|
||
;CHECK: ; Combined Shader Flags for Module | ||
;CHECK-NEXT: ; Shader Flags Value: 0x00100000 | ||
;CHECK-NEXT: ; | ||
;CHECK-NEXT: ; Note: shader requires additional functionality: | ||
;CHECK-NEXT: ; 64-Bit integer | ||
;CHECK-NEXT: ; Note: extra DXIL module flags: | ||
;CHECK-NEXT: ; | ||
;CHECK-NEXT: ; Shader Flags for Module Functions | ||
;CHECK-NEXT: ; Function add : 0x00100000 | ||
|
||
define i64 @add(i64 %a, i64 %b) #0 { | ||
%sum = add i64 %a, %b | ||
ret i64 %sum | ||
} | ||
|
||
attributes #0 = { convergent norecurse nounwind "hlsl.export"} | ||
|
||
; DXC: - Name: SFI0 | ||
; DXC-NEXT: Size: 8 | ||
; DXC-NEXT: Flags: | ||
; DXC-NOT: {{[A-Za-z]+: +true}} | ||
; DXC: Int64Ops: true | ||
; DXC-NOT: {{[A-Za-z]+: +true}} | ||
; DXC: NextUnusedBit: false | ||
; DXC: ... |
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.
Uh oh!
There was an error while loading. Please reload this page.