[all-commits] [llvm/llvm-project] 184f94: Implement the `fmod` intrinsic (#130320)

Kaitlin Peng via All-commits all-commits at lists.llvm.org
Wed Mar 12 10:21:29 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 184f9449572b498a612246771d2feabda75f0800
      https://github.com/llvm/llvm-project/commit/184f9449572b498a612246771d2feabda75f0800
  Author: Kaitlin Peng <kaitlinpeng at microsoft.com>
  Date:   2025-03-12 (Wed, 12 Mar 2025)

  Changed paths:
    M clang/lib/Headers/hlsl/hlsl_alias_intrinsics.h
    M clang/lib/Headers/hlsl/hlsl_intrinsic_helpers.h
    M clang/lib/Headers/hlsl/hlsl_intrinsics.h
    M clang/test/CodeGenHLSL/builtins/fmod.hlsl
    A clang/test/SemaHLSL/BuiltIns/fmod-errors.hlsl

  Log Message:
  -----------
  Implement the `fmod` intrinsic (#130320)

Replaced the current `fmod` definition with a templatized version,
implemented `fmod` algorithm for DirectX targets that matches the DXC
implementation, added corresponding tests in
`clang/test/CodeGenHLSL/builtins/fmod.hlsl` and
`clang/test/SemaHLSL/BuiltIns/fmod-errors.hlsl`.

Closes #99118.



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