Skip to content
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] Implement vector extension/truncation/conversion standard conversion sequences #70125

Closed
Tracked by #67692
llvm-beanz opened this issue Oct 24, 2023 · 2 comments
Closed
Tracked by #67692
Assignees
Labels
clang:frontend Language frontend issues, e.g. anything involving "Sema" HLSL HLSL Language Support

Comments

@llvm-beanz
Copy link
Collaborator

HLSL's standard conversion sequences support vector splat and truncation as a "second" conversions, and have an element-wise integral or floating point conversion that can be inserted between C++'s second and third conversions.

This is not well documented, but the WIP specification of the behavior is here:

https://github.com/microsoft/hlsl-specs/blob/main/specs/language/conversions.tex

The draft specification is also available as a PDF. The relevant chapter has the stable reference [Conv].

@llvm-beanz llvm-beanz converted this from a draft issue Oct 24, 2023
@llvm-beanz llvm-beanz added the HLSL HLSL Language Support label Oct 24, 2023
@llvm-beanz llvm-beanz self-assigned this Oct 24, 2023
@llvm-beanz llvm-beanz moved this to Needs Review in HLSL Support Nov 30, 2023
@llvm-beanz
Copy link
Collaborator Author

Merged in #71098

@github-project-automation github-project-automation bot moved this from Needs Review to Done in HLSL Support Feb 16, 2024
@EugeneZelenko EugeneZelenko added the clang:frontend Language frontend issues, e.g. anything involving "Sema" label Feb 16, 2024
@llvmbot
Copy link
Member

llvmbot commented Feb 16, 2024

@llvm/issue-subscribers-clang-frontend

Author: Chris B (llvm-beanz)

HLSL's standard conversion sequences support vector splat and truncation as a "second" conversions, and have an element-wise integral or floating point conversion that can be inserted between C++'s second and third conversions.

This is not well documented, but the WIP specification of the behavior is here:

https://github.com/microsoft/hlsl-specs/blob/main/specs/language/conversions.tex

The draft specification is also available as a PDF. The relevant chapter has the stable reference [Conv].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang:frontend Language frontend issues, e.g. anything involving "Sema" HLSL HLSL Language Support
Projects
Status: No status
Development

No branches or pull requests

3 participants