[all-commits] [llvm/llvm-project] 8732d0: [SPIRV] Don't add CPacked and Alignement decoratio...

Steven Perron via All-commits all-commits at lists.llvm.org
Wed May 14 06:18:36 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8732d0f38961687b8d2f588d35f9164784660862
      https://github.com/llvm/llvm-project/commit/8732d0f38961687b8d2f588d35f9164784660862
  Author: Steven Perron <stevenperron at google.com>
  Date:   2025-05-14 (Wed, 14 May 2025)

  Changed paths:
    M llvm/lib/Target/SPIRV/SPIRVCallLowering.cpp
    M llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.cpp
    A llvm/test/CodeGen/SPIRV/global-var-name-align.ll
    A llvm/test/CodeGen/SPIRV/hlsl-resources/Packed.ll

  Log Message:
  -----------
  [SPIRV] Don't add CPacked and Alignement decorations for Vulkan (#138711)

Packed structs get a different layout than a struct that is not packed.
This is handled by assigning different offset decoration when
appropriate. The `CPacked` decoration is not required, and is in fact
not valid when creating a shader.

Similaraly the alignment decoration is not allows when creating a
shader. We must avoid generating that decoration.

Fixes https://github.com/llvm/llvm-project/issues/138268



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