[all-commits] [llvm/llvm-project] f842b7: [HLSL] add log library functions

Joshua Batista via All-commits all-commits at lists.llvm.org
Thu Feb 16 09:51:04 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f842b7a6b8f40d817d6d43143e09521bd586a756
      https://github.com/llvm/llvm-project/commit/f842b7a6b8f40d817d6d43143e09521bd586a756
  Author: Joshua Batista <jbatista at microsoft.com>
  Date:   2023-02-16 (Thu, 16 Feb 2023)

  Changed paths:
    M clang/lib/Headers/hlsl/hlsl_intrinsics.h
    A clang/test/CodeGenHLSL/builtins/log.hlsl
    A clang/test/CodeGenHLSL/builtins/log10.hlsl
    A clang/test/CodeGenHLSL/builtins/log2.hlsl

  Log Message:
  -----------
  [HLSL] add log library functions

This 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 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

Reviewed By: python3kgae

Differential Revision: https://reviews.llvm.org/D144120




More information about the All-commits mailing list