[all-commits] [llvm/llvm-project] df5137: [HLSL] add pow library function

Joshua Batista via All-commits all-commits at lists.llvm.org
Tue Aug 8 13:08:01 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: df5137e984a607248cd31ed67aa3822e8ac2a083
      https://github.com/llvm/llvm-project/commit/df5137e984a607248cd31ed67aa3822e8ac2a083
  Author: Joshua Batista <jbatista at microsoft.com>
  Date:   2023-08-08 (Tue, 08 Aug 2023)

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

  Log Message:
  -----------
  [HLSL] add pow library function

This change exposes the pow library function for HLSL, only available for floating point types.
The pow function is supported for all scalar, vector, and matrix types that contain floating point types.

The full documentation of the HLSL pow function is available here:
https://learn.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-pow

Reviewed By: bogner

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




More information about the All-commits mailing list