-
Notifications
You must be signed in to change notification settings - Fork 13.5k
[DirectX] Infrastructure to collect shader flags for each function #112967
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
bharadwajy
merged 17 commits into
llvm:main
from
bharadwajy:shader-flags/func-level-collection
Nov 25, 2024
+197
−71
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
3da01ee
[NFC][DirectX] Infrastructure to collect shader flags for each function
bharadwajy 397f70b
clang-format changes
bharadwajy ae373d4
Use a SmallVector of pairs instead of DenseMap to collect Function
bharadwajy c02053a
Compare functions by their names instead of constructing a pseudo-sig…
bharadwajy 47ab4c5
Fix incorrect lookup that expects a sorted vector done in a possibly …
bharadwajy fa8ec60
Use getFunctionList() instead of iterating Module for functions.
bharadwajy a4f1e51
Change return type of getShaderFlagsMask() to Expected<T>
bharadwajy a6d84b2
Address PR feedback
bharadwajy 31b0770
Address PR feedback
bharadwajy 3427781
Address PR feedback.
bharadwajy 56af02a
Delete unused function
bharadwajy f8e501f
Use function shader flag mask for module flags; track combined mask
bharadwajy c6b3390
Rename operator |= as merge
bharadwajy 70e46e0
Address PR feedback
bharadwajy 07734f7
Rename getShaderFlagsMask() as getFunctionFlags()
bharadwajy a0d2a31
Cleanup of CHECK directives in tests.
bharadwajy 2cee00a
Delete extraneous space in CHECK line
bharadwajy 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
16 changes: 16 additions & 0 deletions
16
llvm/test/CodeGen/DirectX/ShaderFlags/double-extensions-obj-test.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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
; RUN: llc %s --filetype=obj -o - | obj2yaml | FileCheck %s | ||
|
||
target triple = "dxil-pc-shadermodel6.7-library" | ||
define double @div(double %a, double %b) #0 { | ||
%res = fdiv double %a, %b | ||
ret double %res | ||
} | ||
|
||
attributes #0 = { convergent norecurse nounwind "hlsl.export"} | ||
|
||
; CHECK: - Name: SFI0 | ||
; CHECK-NEXT: Size: 8 | ||
; CHECK-NEXT: Flags: | ||
; CHECK: Doubles: true | ||
; CHECK: DX11_1_DoubleExtensions: true | ||
|
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.
Do we have an issue for this?
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.
#114554.