[clang] [HLSL] make semantic matching case insensitive (PR #129773)

Chris B via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 7 13:52:06 PST 2025


================
@@ -4790,7 +4790,7 @@ def HLSLPackOffset: HLSLAnnotationAttr {
 }
 
 def HLSLSV_DispatchThreadID: HLSLAnnotationAttr {
-  let Spellings = [HLSLAnnotation<"SV_DispatchThreadID">];
+  let Spellings = [HLSLAnnotation<"sv_dispatchthreadid">];
----------------
llvm-beanz wrote:

Can we add a check in the tablegen code to error if the HLSLAnnotation attributes ever have a spelling with a capital letter?

I just don't want us to screw this up accidentally and break some new attribute.

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


More information about the cfe-commits mailing list