[PATCH] D144120: [HLSL] add log library functionsThis change exposes the log library functions for HLSL,excluding long, int, and long long doubles.The log functions are supported for all scalar, vector, and matrix types.Long and long long double support is...

Joshua Batista via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 15 10:23:39 PST 2023


bob80905 created this revision.
Herald added a subscriber: Anastasia.
Herald added a project: All.
bob80905 requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

...missing in this patch because those types
don't exist in HLSL. Int is missing because the log functions only work on floating type arguments.

The full documentation of the HLSL log functions are available here:
https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-log
https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-log2
https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-log10


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D144120

Files:
  clang/lib/Headers/hlsl/hlsl_intrinsics.h
  clang/test/CodeGenHLSL/builtins/log.hlsl
  clang/test/CodeGenHLSL/builtins/log10.hlsl
  clang/test/CodeGenHLSL/builtins/log2.hlsl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144120.497733.patch
Type: text/x-patch
Size: 10974 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230215/05feeb9e/attachment.bin>


More information about the cfe-commits mailing list