[all-commits] [llvm/llvm-project] 67518a: [HLSL] Implement elementwise popcount (#108121)

Sarah Spall via All-commits all-commits at lists.llvm.org
Wed Sep 18 08:20:15 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 67518a44fec0f59b2f926059cf15ec77ec72da13
      https://github.com/llvm/llvm-project/commit/67518a44fec0f59b2f926059cf15ec77ec72da13
  Author: Sarah Spall <sarahspall at microsoft.com>
  Date:   2024-09-18 (Wed, 18 Sep 2024)

  Changed paths:
    M clang/docs/LanguageExtensions.rst
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/Builtins.td
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/lib/Headers/hlsl/hlsl_intrinsics.h
    M clang/lib/Sema/SemaChecking.cpp
    M clang/test/CodeGen/builtins-elementwise-math.c
    A clang/test/CodeGenHLSL/builtins/countbits.hlsl
    M clang/test/Sema/builtins-elementwise-math.c
    A clang/test/Sema/countbits-errors.hlsl
    M clang/test/SemaCXX/builtins-elementwise-math.cpp
    A clang/test/SemaHLSL/BuiltIns/countbits-errors.hlsl
    M llvm/lib/Target/DirectX/DXIL.td
    A llvm/test/CodeGen/DirectX/countbits.ll
    A llvm/test/CodeGen/SPIRV/hlsl-intrinsics/countbits.ll

  Log Message:
  -----------
  [HLSL] Implement elementwise popcount (#108121)

Add new elementwise popcount builtin to support HLSL function
'countbits'.
elementwise popcount only accepts integer types.
Add hlsl intrinsic 'countbits'
Closes #99094



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