[PATCH] D156178: [HLSL] add pow library function

Joshua Batista via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 24 15:39:25 PDT 2023


bob80905 created this revision.
bob80905 added reviewers: python3kgae, beanz.
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.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D156178

Files:
  clang/lib/Headers/hlsl/hlsl_intrinsics.h
  clang/test/CodeGenHLSL/builtins/pow.hlsl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156178.543725.patch
Type: text/x-patch
Size: 7129 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230724/75a8058e/attachment.bin>


More information about the cfe-commits mailing list