[all-commits] [llvm/llvm-project] dd17c6: [HLSL] Implement min and max overloads using templ...

Sarah Spall via All-commits all-commits at lists.llvm.org
Wed Mar 19 09:58:09 PDT 2025


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

  Changed paths:
    M clang/lib/Headers/hlsl/hlsl_alias_intrinsics.h
    M clang/lib/Headers/hlsl/hlsl_compat_overloads.h
    A clang/test/SemaHLSL/BuiltIns/max-errors-16bit.hlsl
    A clang/test/SemaHLSL/BuiltIns/min-errors-16bit.hlsl

  Log Message:
  -----------
  [HLSL] Implement min and max overloads using templates (#131666)

Replace min and max overload implementation using macros with one using
templates.
Enable overloads of the forms:
 vector<T,N> min/max(vector<T,N> p0, T p1)
 vector<T,N> min/max(T p0, vector<T,N> p1)
 Add new tests.
Closes #131170



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