[clang] [llvm] [HLSL][SPIR-V] Implement vk::push_constant (PR #166793)

Steven Perron via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 17 11:03:19 PST 2025


================
@@ -0,0 +1,13 @@
+// RUN: %clang_cc1 -triple spirv-unknown-vulkan-compute -x hlsl -emit-llvm -disable-llvm-passes -o - -hlsl-entry main %s -verify
+
+struct S {
+    float f;
+};
+
+// expected-error at +1 {{'vk::binding' attribute is not compatible with 'vk::push_constant' attribute}}
----------------
s-perron wrote:

I believe these type of test belong in SEMA. This test fails before it reaches codegen.

https://github.com/llvm/llvm-project/pull/166793


More information about the llvm-commits mailing list