-
Notifications
You must be signed in to change notification settings - Fork 13.4k
[HLSL] reflect, distance, and length intrinsics are not restricting vector size #129003
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
Labels
Comments
farzonl
added a commit
to farzonl/llvm-project
that referenced
this issue
Mar 4, 2025
- fixes llvm#129616 - fixes llvm#129003 by adding enable_if_t vector ranges. - alphabetize the or intrinsic
farzonl
added a commit
to farzonl/llvm-project
that referenced
this issue
Mar 11, 2025
fixes llvm#129003 - fix up sema tests - fix up templates for scalar and vector HLSL intrinsic overloads
farzonl
added a commit
to farzonl/llvm-project
that referenced
this issue
Mar 11, 2025
fixes llvm#129003 - fix up sema tests - fix up templates for scalar and vector HLSL intrinsic overloads
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
llvm-project/clang/lib/Headers/hlsl/hlsl_intrinsics.h
Lines 2084 to 2093 in 556eb82
llvm-project/clang/lib/Headers/hlsl/hlsl_intrinsics.h
Lines 1446 to 1454 in 556eb82
llvm-project/clang/lib/Headers/hlsl/hlsl_intrinsics.h
Lines 933 to 942 in 556eb82
The fix:
we need to exclude vec1s and limit to vec4. the apis need something similar to c++
Long term we will want to support long vectors we may want to do those like so
For this ticket though we will only restrict the vector range.
Obviously std can't work maybe we can do something like:
Will likely need to see what other options are to restrict vector ranges.
The text was updated successfully, but these errors were encountered: