-
Notifications
You must be signed in to change notification settings - Fork 12.4k
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
[HLSL] Type trait for layout compatibility #100614
Comments
I just reviewed and confirmed that the existing |
Wait... Nvm... The C++ version of this does not support flattening the way that HLSL requires, so there is more work to do... yay. |
Spec PR: microsoft/hlsl-specs#298 |
HLSL tends to rely pretty aggressively on scalarization occuring in the complier, which allows for some relaxed language behaviors when types are fully sclarized to equivalent scalar representations. This change adds a new queryable trait builtin for scalarized layout compatability. Resolves llvm#100614
@llvm/issue-subscribers-clang-frontend Author: Chris B (llvm-beanz)
We need to define a type trait for layout compatibility. HLSL allows explicit casting between types if they have the same member layouts. We should expose this as a type trait builtin so that we can use it from source as well.
Related: #75676 |
HLSL tends to rely pretty aggressively on scalarization occuring in the complier, which allows for some relaxed language behaviors when types are fully sclarized to equivalent scalar representations. This change adds a new queryable trait builtin for scalarized layout compatability. Resolves llvm#100614 --------- Co-authored-by: Aaron Ballman <[email protected]>
HLSL tends to rely pretty aggressively on scalarization occuring in the complier, which allows for some relaxed language behaviors when types are fully sclarized to equivalent scalar representations. This change adds a new queryable trait builtin for scalarized layout compatability. Resolves llvm#100614 --------- Co-authored-by: Aaron Ballman <[email protected]>
We need to define a type trait for layout compatibility. HLSL allows explicit casting between types if they have the same member layouts. We should expose this as a type trait builtin so that we can use it from source as well.
Related: #75676
The text was updated successfully, but these errors were encountered: