llvm-project/clang/test/CodeGenHLSL/builtins
Joshua Batista 083d949f38 [HLSL] add sin library function
This change exposes the sin library function for HLSL,
excluding long, int, and long long doubles.
Sin is supported for all scalar, vector, and matrix types.

Long and long long double support is missing in this patch because those types
don't exist in HLSL. Int is missing because the sin function only works on floating type arguments.

The full documentation of the HLSL sin function is available here:
https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-sin

Reviewed By: python3kgae

Differential Revision: https://reviews.llvm.org/D138161
2022-11-16 18:29:50 -08:00
..
RWBuffer-annotations.hlsl [HLSL] Remove unused frontend-generated ID 2022-10-21 12:41:09 -05:00
RWBuffer-constructor.hlsl
RWBuffer-subscript.hlsl [HLSL] Adding a test change I forgot to add 2022-09-13 20:53:39 -05:00
abs.hlsl [HLSL] Disable integer promotion to avoid int16_t being promoted to int for HLSL. 2022-10-20 16:06:25 -07:00
ceil.hlsl Move HLSL builtins into hlsl namespace 2022-10-19 10:59:31 -05:00
cos.hlsl [HLSL] add cos library function 2022-11-16 12:54:11 -08:00
create_handle.hlsl
sin.hlsl [HLSL] add sin library function 2022-11-16 18:29:50 -08:00
sqrt.hlsl Move HLSL builtins into hlsl namespace 2022-10-19 10:59:31 -05:00