[clang] [HLSL] Change default linkage of HLSL functions and `groupshared` variables (PR #93336)

Helena Kotas via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 12 16:13:25 PDT 2024


================
@@ -108,3 +108,16 @@ behavior between Clang and DXC. Some examples include:
   diagnostic notifying the user of the conversion rather than silently altering
   precision relative to the other overloads (as FXC does) or generating code
   that will fail validation (as DXC does).
+
+Correctness improvements (bug fixes)
+====================================
+
+Entry point functions & ``static`` keyword
+------------------------------------------
+Marking a shader entry point function ``static`` will result in an error.
----------------
hekota wrote:

Yes: https://github.com/llvm/llvm-project/blob/e80c59556d2d71cc2d0dcb2bd712c36cc4043025/clang/test/SemaHLSL/shader_type_attr.hlsl#L20-L22

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


More information about the cfe-commits mailing list