[all-commits] [llvm/llvm-project] f842c9: [HLSL][LongVector] Implement fmod (#224123)

Farzon Lotfi via All-commits all-commits at lists.llvm.org
Tue Sep 22 13:09:47 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f842c96e5d2b7ccdaad43e443164ae6574f29778
      https://github.com/llvm/llvm-project/commit/f842c96e5d2b7ccdaad43e443164ae6574f29778
  Author: Farzon Lotfi <farzonlotfi at microsoft.com>
  Date:   2026-09-22 (Tue, 22 Sep 2026)

  Changed paths:
    M clang/include/clang/Basic/HLSLIntrinsics.td
    M clang/lib/Headers/hlsl/hlsl_intrinsic_helpers.h
    M clang/test/CodeGenHLSL/builtins/fmod.hlsl
    M clang/test/SemaHLSL/BuiltIns/fmod-errors.hlsl

  Log Message:
  -----------
  [HLSL][LongVector] Implement fmod (#224123)

resolves https://github.com/llvm/llvm-project/issues/220649

This is as much a refactor as it is adding long vector support.

I noticed the fmod helper had many issues. THe SPIR-V implementatiion
wasn't properly put into a SPIR-V macro

fmod had a scalar \ vector version that was unecessary.

The tests seemed to be raw register defines so
source code changes caused the names to all change.

Fixing this meant we could simplify the tablegen
and helpers.

Also the tests are much more clean with no -D defines



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