[all-commits] [llvm/llvm-project] e54539: [HLSL] Add reversebits library function

Joshua Batista via All-commits all-commits at lists.llvm.org
Wed Aug 2 20:51:15 PDT 2023


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

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

  Log Message:
  -----------
  [HLSL] Add reversebits library function

This change exposes the reversebits library function for HLSL, excluding floating point types.
The reversebits function is supported for all scalar, vector, and matrix types.

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

Reviewed By: python3kgae

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




More information about the All-commits mailing list