[all-commits] [llvm/llvm-project] 7ac055: [HLSL] add max/min library functions

Joshua Batista via All-commits all-commits at lists.llvm.org
Fri Mar 3 09:32:24 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7ac0551e77f4adab18f3ac6ae428d4c09f9b6c49
      https://github.com/llvm/llvm-project/commit/7ac0551e77f4adab18f3ac6ae428d4c09f9b6c49
  Author: Joshua Batista <jbatista at microsoft.com>
  Date:   2023-03-03 (Fri, 03 Mar 2023)

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

  Log Message:
  -----------
  [HLSL] add max/min library functions

This change exposes the max and min library functions for HLSL, excluding long, and long long doubles.
The max / min 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.

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

Reviewed By: python3kgae

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




More information about the All-commits mailing list