[clang] [llvm] [HLSL] AST support for WaveSize attribute. (PR #101240)

Justin Bogner via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 30 11:01:23 PDT 2024


================
@@ -153,6 +154,25 @@ HLSLNumThreadsAttr *SemaHLSL::mergeNumThreadsAttr(Decl *D,
       HLSLNumThreadsAttr(getASTContext(), AL, X, Y, Z);
 }
 
+HLSLWaveSizeAttr *SemaHLSL::mergeWaveSizeAttr(Decl *D,
+                                              const AttributeCommonInfo &AL,
+                                              int Min, int Max, int Preferred,
+                                              int SpelledArgsCount) {
+  if (HLSLWaveSizeAttr *NT = D->getAttr<HLSLWaveSizeAttr>()) {
----------------
bogner wrote:

One more "NT" to rename.

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


More information about the cfe-commits mailing list