@@ -2934,10 +2934,9 @@ static bool checkWorkGroupSizeValues(Sema &S, Decl *D, const ParsedAttr &Attr,
2934
2934
}
2935
2935
2936
2936
if (Attr.getKind () == ParsedAttr::AT_SYCLIntelMaxWorkGroupSize &&
2937
- checkDeprecatedSYCLAttributeSpelling (S, Attr)) {
2937
+ checkDeprecatedSYCLAttributeSpelling (S, Attr))
2938
2938
S.Diag (Attr.getLoc (), diag::note_spelling_suggestion)
2939
2939
<< " 'intel::max_work_group_size'" ;
2940
- }
2941
2940
2942
2941
if (const auto *A = D->getAttr <ReqdWorkGroupSizeAttr>()) {
2943
2942
if (!(WGSize[0 ] >= A->getXDim () && WGSize[1 ] >= A->getYDim () &&
@@ -5191,10 +5190,9 @@ static void handleNoGlobalWorkOffsetAttr(Sema &S, Decl *D,
5191
5190
<< Attr;
5192
5191
5193
5192
if (Attr.getKind () == ParsedAttr::AT_SYCLIntelNoGlobalWorkOffset &&
5194
- checkDeprecatedSYCLAttributeSpelling (S, Attr)) {
5193
+ checkDeprecatedSYCLAttributeSpelling (S, Attr))
5195
5194
S.Diag (Attr.getLoc (), diag::note_spelling_suggestion)
5196
5195
<< " 'intel::no_global_work_offset'" ;
5197
- }
5198
5196
5199
5197
D->addAttr (::new (S.Context )
5200
5198
SYCLIntelNoGlobalWorkOffsetAttr (S.Context , Attr, Enabled));
@@ -5221,14 +5219,13 @@ static void handleIntelFPGAPumpAttr(Sema &S, Decl *D, const ParsedAttr &Attr) {
5221
5219
S.Context , IntelFPGAMemoryAttr::Default));
5222
5220
5223
5221
if (Attr.getKind () == ParsedAttr::AT_IntelFPGADoublePump &&
5224
- checkDeprecatedSYCLAttributeSpelling (S, Attr)) {
5222
+ checkDeprecatedSYCLAttributeSpelling (S, Attr))
5225
5223
S.Diag (Attr.getLoc (), diag::note_spelling_suggestion)
5226
5224
<< " 'intel::doublepump'" ;
5227
- } else if (Attr.getKind () == ParsedAttr::AT_IntelFPGASinglePump &&
5228
- checkDeprecatedSYCLAttributeSpelling (S, Attr)) {
5229
- S.Diag (Attr.getLoc (), diag::note_spelling_suggestion)
5230
- << " 'intel::singlepump'" ;
5231
- }
5225
+ else if (Attr.getKind () == ParsedAttr::AT_IntelFPGASinglePump &&
5226
+ checkDeprecatedSYCLAttributeSpelling (S, Attr))
5227
+ S.Diag (Attr.getLoc (), diag::note_spelling_suggestion)
5228
+ << " 'intel::singlepump'" ;
5232
5229
5233
5230
handleSimpleAttribute<AttrType>(S, D, Attr);
5234
5231
}
@@ -5345,14 +5342,13 @@ static void handleOneConstantPowerTwoValueAttr(Sema &S, Decl *D,
5345
5342
return ;
5346
5343
5347
5344
if (Attr.getKind () == ParsedAttr::AT_IntelFPGABankWidth &&
5348
- checkDeprecatedSYCLAttributeSpelling (S, Attr)) {
5345
+ checkDeprecatedSYCLAttributeSpelling (S, Attr))
5349
5346
S.Diag (Attr.getLoc (), diag::note_spelling_suggestion)
5350
5347
<< " 'intel::bankwidth'" ;
5351
- } else if (Attr.getKind () == ParsedAttr::AT_IntelFPGANumBanks &&
5352
- checkDeprecatedSYCLAttributeSpelling (S, Attr)) {
5353
- S.Diag (Attr.getLoc (), diag::note_spelling_suggestion)
5354
- << " 'intel::numbanks'" ;
5355
- }
5348
+ else if (Attr.getKind () == ParsedAttr::AT_IntelFPGANumBanks &&
5349
+ checkDeprecatedSYCLAttributeSpelling (S, Attr))
5350
+ S.Diag (Attr.getLoc (), diag::note_spelling_suggestion)
5351
+ << " 'intel::numbanks'" ;
5356
5352
5357
5353
S.AddOneConstantPowerTwoValueAttr <AttrType>(D, Attr, Attr.getArgAsExpr (0 ));
5358
5354
}
0 commit comments