llvm-project/clang/test/CodeGenHLSL
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
..
builtins [HLSL] add sin library function 2022-11-16 18:29:50 -08:00
semantics [HLSL] Add SV_DispatchThreadID 2022-10-18 16:17:19 -07:00
GlobalConstructorFunction.hlsl [HLSL] Remove global ctor/dtor variable for non-lib profile. 2022-10-06 15:00:50 -07:00
GlobalConstructorLib.hlsl [HLSL] Remove global ctor/dtor variable for non-lib profile. 2022-10-06 15:00:50 -07:00
GlobalConstructors.hlsl [HLSL] Remove global ctor/dtor variable for non-lib profile. 2022-10-06 15:00:50 -07:00
GlobalDestructors.hlsl [HLSL] Remove global ctor/dtor variable for non-lib profile. 2022-10-06 15:00:50 -07:00
basic-target.c
basic_types.hlsl Move HLSL builtins into hlsl namespace 2022-10-19 10:59:31 -05:00
buffer-array-operator.hlsl [HLSL] Generate buffer subscript operators 2022-09-02 14:55:43 -05:00
cbuf.hlsl [HLSL] Remove unused frontend-generated ID 2022-10-21 12:41:09 -05:00
cbuf_in_namespace.hlsl [HLSL] CodeGen hlsl cbuffer/tbuffer. 2022-10-12 21:17:38 -07:00
disable_opt.hlsl [clang] [test] Use %clang_cc1 substitution consistently 2022-09-29 20:59:00 +02:00
entry.hlsl [HLSL] clang codeGen for HLSLNumThreadsAttr 2022-09-22 15:30:52 -07:00
float3.hlsl [NFC} update CodeGenHLSL tests to use cc1 instead of driver-mode 2022-09-17 00:11:44 -07:00
group_shared.hlsl [HLSL] Add groupshare address space. 2022-10-20 09:29:09 -07:00
half.hlsl [NFC} update CodeGenHLSL tests to use cc1 instead of driver-mode 2022-09-17 00:11:44 -07:00
lit.local.cfg
no_int_promotion.hlsl [HLSL] Disable integer promotion to avoid int16_t being promoted to int for HLSL. 2022-10-20 16:06:25 -07:00
shader_type_attr.hlsl [NFC} update CodeGenHLSL tests to use cc1 instead of driver-mode 2022-09-17 00:11:44 -07:00
sret_output.hlsl [HLSL] Add SV_DispatchThreadID 2022-10-18 16:17:19 -07:00
static_global_and_function_in_cb.hlsl [HLSL] CodeGen hlsl cbuffer/tbuffer. 2022-10-12 21:17:38 -07:00
this-assignment-overload.hlsl [HLSL] Added HLSL this as a reference 2022-11-07 13:50:08 -08:00
this-assignment.hlsl [HLSL] Added HLSL this as a reference 2022-11-07 13:50:08 -08:00
this-reference.hlsl [HLSL] Added HLSL this as a reference 2022-11-07 13:50:08 -08:00
validator_version.hlsl [clang] [test] Use %clang_cc1 substitution consistently 2022-09-29 20:59:00 +02:00