[clang] [llvm] [HLSL] Add initial support for output semantics (PR #168095)

Steven Perron via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 17 10:50:45 PST 2025


================
@@ -0,0 +1,6 @@
+// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-vertex -x hlsl -emit-llvm -disable-llvm-passes -o - -hlsl-entry main %s -verify -verify-ignore-unexpected=note
+// RUN: %clang_cc1 -triple spirv-unknown-vulkan-vertex -x hlsl -emit-llvm -disable-llvm-passes -o - -hlsl-entry main %s -verify -verify-ignore-unexpected=note
+
+float main(unsigned GI : A) {
+  // expected-error at -1 {{semantic annotations must be present for all parameters of an entry function or patch constant function}}
----------------
s-perron wrote:

Should this test be in Sema instead of codegen?

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


More information about the llvm-commits mailing list