[all-commits] [llvm/llvm-project] 23be14: [HLSL][SPIRV] Boolean in a RawBuffer should be i32...

Sarah Spall via All-commits all-commits at lists.llvm.org
Fri Jun 27 13:43:26 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 23be14b22200905b42bcea9add95f1f9233c728a
      https://github.com/llvm/llvm-project/commit/23be14b22200905b42bcea9add95f1f9233c728a
  Author: Sarah Spall <sarahspall at microsoft.com>
  Date:   2025-06-27 (Fri, 27 Jun 2025)

  Changed paths:
    M clang/lib/CodeGen/Targets/SPIR.cpp
    M clang/test/CodeGenHLSL/builtins/AppendStructuredBuffer-elementtype.hlsl
    M clang/test/CodeGenHLSL/builtins/ConsumeStructuredBuffer-elementtype.hlsl
    M clang/test/CodeGenHLSL/builtins/RWStructuredBuffer-elementtype.hlsl
    M clang/test/CodeGenHLSL/builtins/StructuredBuffer-elementtype.hlsl

  Log Message:
  -----------
  [HLSL][SPIRV] Boolean in a RawBuffer should be i32 and Boolean vector in a RawBuffer should be <N x i32> (#144929)

Instead of converting the type in a RawBuffer to its HLSL type using
'ConvertType', use 'ConvertTypeForMem'.
ConvertTypeForMem handles booleans being i32 and boolean vectors being <
N x i32 >.
Add tests to show booleans and boolean vectors in RawBuffers now have
the correct type of i32, and respectively.
Closes #141089



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