Skip to content

[SYCL][FPGA][NFC] Update [[intel::use_stall_enable_clusters]] attribute #5053

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 3, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 5 additions & 13 deletions clang/lib/Sema/SemaDeclAttr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3560,18 +3560,10 @@ static void handleSYCLIntelNumSimdWorkItemsAttr(Sema &S, Decl *D,
}

// Handles use_stall_enable_clusters
static void handleUseStallEnableClustersAttr(Sema &S, Decl *D,
const ParsedAttr &Attr) {
if (D->isInvalidDecl())
return;

unsigned NumArgs = Attr.getNumArgs();
if (NumArgs > 0) {
S.Diag(Attr.getLoc(), diag::warn_attribute_too_many_arguments) << Attr << 0;
return;
}

handleSimpleAttribute<SYCLIntelUseStallEnableClustersAttr>(S, D, Attr);
static void handleSYCLIntelUseStallEnableClustersAttr(Sema &S, Decl *D,
const ParsedAttr &A) {
D->addAttr(::new (S.Context)
SYCLIntelUseStallEnableClustersAttr(S.Context, A));
}

// Handles disable_loop_pipelining attribute.
Expand Down Expand Up @@ -9979,7 +9971,7 @@ static void ProcessDeclAttribute(Sema &S, Scope *scope, Decl *D,
handleSYCLIntelNoGlobalWorkOffsetAttr(S, D, AL);
break;
case ParsedAttr::AT_SYCLIntelUseStallEnableClusters:
handleUseStallEnableClustersAttr(S, D, AL);
handleSYCLIntelUseStallEnableClustersAttr(S, D, AL);
break;
case ParsedAttr::AT_SYCLIntelLoopFuse:
handleSYCLIntelLoopFuseAttr(S, D, AL);
Expand Down