[all-commits] [llvm/llvm-project] 083d94: [HLSL] add sin library function
Joshua Batista via All-commits
all-commits at lists.llvm.org
Wed Nov 16 18:31:20 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 083d949f3800978c07260a0b8d6711c353d69e45
https://github.com/llvm/llvm-project/commit/083d949f3800978c07260a0b8d6711c353d69e45
Author: Joshua Batista <jbatista at microsoft.com>
Date: 2022-11-16 (Wed, 16 Nov 2022)
Changed paths:
M clang/lib/Headers/hlsl/hlsl_intrinsics.h
A clang/test/CodeGenHLSL/builtins/sin.hlsl
Log Message:
-----------
[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
More information about the All-commits
mailing list