Fangrui Song
f34a5205aa
[clang,test] Convert text files from CRLF to LF
...
Skip files with intentional CRLF line endings.
2024-05-03 10:23:53 -07:00
Farzon Lotfi
2329fb29d1
[HLSL] enforce unsigned types for reversebits ( #86720 )
...
fixes #86719
- `SemaChecking.cpp` - Adds unsigned semaChecks to
`__builtin_elementwise_bitreverse`
- `hlsl_intrinsics.h` - remove signed `reversebits` apis
2024-03-27 14:51:22 -04:00
Chris B
e82659fff2
[HLSL] Expose half
types and intrinsics always ( #81782 )
...
We previously made an implmenetation error when adding `half` overloads
for HLSL library functionalitly. The `half` type is always defined in
HLSL and `half` intrinsics should not be conditionally included.
When native 16-bit types are disabled `half` is a unique 32-bit float
type with lesser promotion rank than `float`.
Fixes #81049
2024-02-15 12:29:22 -06:00
Joshua Batista
e545392b1d
[HLSL] Add reversebits library function
...
This change exposes the reversebits library function for HLSL, excluding floating point types.
The reversebits function is supported for all scalar, vector, and matrix types.
The full documentation of the HLSL reversebits function is available here:
https://learn.microsoft.com/en-us/windows/win32/direct3dhlsl/reversebits
Reviewed By: python3kgae
Differential Revision: https://reviews.llvm.org/D156933
2023-08-02 20:50:40 -07:00