[all-commits] [llvm/llvm-project] 25713e: [HLSL] Add additional overloads for min and max to...

Sarah Spall via All-commits all-commits at lists.llvm.org
Mon Mar 3 11:30:21 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 25713ed85fd327f4733b2ac6083c23464aa9c646
      https://github.com/llvm/llvm-project/commit/25713ed85fd327f4733b2ac6083c23464aa9c646
  Author: Sarah Spall <sarahspall at microsoft.com>
  Date:   2025-03-03 (Mon, 03 Mar 2025)

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

  Log Message:
  -----------
  [HLSL] Add additional overloads for min and max to allow for mixed scalar and vector arguments (#129334)

Add additional overloads for min and max to support
min(vector<T,N>, T) and min(T, vector<T,N>)
max(vector<T,N>, T) and max(T, vector<T,N>)
Add tests
Closes #128231



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list