[all-commits] [llvm/llvm-project] 9777e9: [HLSL] add cos library function
Joshua Batista via All-commits
all-commits at lists.llvm.org
Wed Nov 16 12:55:32 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9777e98a610f3128f8a79c13211ca5f05b26f9eb
https://github.com/llvm/llvm-project/commit/9777e98a610f3128f8a79c13211ca5f05b26f9eb
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/cos.hlsl
Log Message:
-----------
[HLSL] add cos library function
This change exposes the cos library function for HLSL,
excluding long, int, and long long doubles.
Cos 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 cos function only works on floating type arguments.
The full documentation of the HLSL cos function is available here:
https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-cos
Reviewed By: python3kgae
Differential Revision: https://reviews.llvm.org/D134921
More information about the All-commits
mailing list