-
Notifications
You must be signed in to change notification settings - Fork 14.8k
[HLSL] Implement HLSL intialization list support #123141
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
llvm-beanz
merged 16 commits into
llvm:main
from
llvm-beanz:cbieneman/hlsl-aggregate-init
Feb 15, 2025
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
d31eebe
[HLSL] Implement HLSL intialization list support
llvm-beanz 859ddab
Update clang/test/SemaHLSL/Language/InitLists.hlsl
llvm-beanz afd3e86
Update clang/lib/Sema/SemaHLSL.cpp
llvm-beanz e5d36ff
Update clang/test/SemaHLSL/Language/InitLists.hlsl
llvm-beanz 74f5004
Updates to fix diagnostics and adjust to new upstream changes
llvm-beanz bd1c29e
Update to support classes with base classes
llvm-beanz 18770cc
Update clang/test/CodeGenHLSL/BasicFeatures/InitLists.hlsl
llvm-beanz ca8255b
Fix formatting
llvm-beanz 2e1452d
Split HLSL's comment from C++'s
llvm-beanz c5f2a1f
Fix initialization with resources in structs
llvm-beanz e923490
Add OVE to capture side effecting arguments in init list
llvm-beanz 019b1f9
Handle side-effecting argument expressions
llvm-beanz 38429f4
Add tests for side-effecting arguments and AST structure.
llvm-beanz 60434e3
Update clang/lib/Sema/SemaHLSL.cpp
llvm-beanz 22338cb
Updates based on PR review feedback
llvm-beanz 70bb063
Update tests based on changes that have merged to main
llvm-beanz 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
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
Oops, something went wrong.
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.
Does this comment match what this is doing? If I'm reading this correctly we're using the fact that there are no user declared constructors/destructors/assignment operators to decide that this is an aggregate - I guess that's because users aren't allowed to write those in HLSL so we can use it as a proxy?
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.
Yea... I'll update the comment too. We can't strictly use
implicit
because some of the implicit types do behave like aggregates.