[all-commits] [llvm/llvm-project] e16069: [HLSL] Add InterlockedAdd HLSL functions (#195742)

Joshua Batista via All-commits all-commits at lists.llvm.org
Tue Jun 9 17:01:12 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e160695032d838fdeb3ff313f99dbffc38f94a7a
      https://github.com/llvm/llvm-project/commit/e160695032d838fdeb3ff313f99dbffc38f94a7a
  Author: Joshua Batista <jbatista at microsoft.com>
  Date:   2026-06-09 (Tue, 09 Jun 2026)

  Changed paths:
    M clang/include/clang/Basic/Builtins.td
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/include/clang/Sema/HLSLExternalSemaSource.h
    M clang/lib/CodeGen/CGHLSLBuiltins.cpp
    M clang/lib/CodeGen/CGHLSLRuntime.h
    M clang/lib/Sema/HLSLExternalSemaSource.cpp
    M clang/lib/Sema/SemaHLSL.cpp
    A clang/test/CodeGenHLSL/builtins/InterlockedAdd.hlsl
    A clang/test/SemaHLSL/BuiltIns/InterlockedAdd-errors.hlsl
    M clang/test/SemaHLSL/BuiltIns/asuint-errors.hlsl
    M clang/test/SemaHLSL/BuiltIns/splitdouble-errors.hlsl
    M clang/test/SemaHLSL/parameter_modifiers.hlsl
    M llvm/include/llvm/IR/IntrinsicsDirectX.td
    M llvm/include/llvm/IR/IntrinsicsSPIRV.td
    M llvm/lib/Target/DirectX/DXILIntrinsicExpansion.cpp
    M llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
    A llvm/test/CodeGen/DirectX/InterlockedAdd.ll
    A llvm/test/CodeGen/SPIRV/hlsl-intrinsics/InterlockedAdd.ll
    A llvm/test/CodeGen/SPIRV/hlsl-intrinsics/InterlockedAdd_spv_i64.ll

  Log Message:
  -----------
  [HLSL] Add InterlockedAdd HLSL functions (#195742)

This PR adds the `InterlockedAdd` function to HLSL.
For now, only integer references are accepted: resources passed as a
parameter, and this function as a member method to certain resources,
will be addressed in a separate PR.
Addresses https://github.com/llvm/llvm-project/issues/99122
Assisted by: Github Copilot



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