================ @@ -245,6 +274,18 @@ void SemaHLSL::CheckEntryPoint(FunctionDecl *FD) { << llvm::Triple::getEnvironmentTypeName(ST); FD->setInvalidDecl(); } + if (const auto *NT = FD->getAttr<HLSLWaveSizeAttr>()) { + if (Ver < VersionTuple(6, 6)) { + Diag(NT->getLocation(), diag::err_hlsl_attribute_in_wrong_shader_model) + << "wavesize" ---------------- llvm-beanz wrote:
You should be able to put the attribute declaration here rather than the string. https://github.com/llvm/llvm-project/pull/101240 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits