File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,14 +16,14 @@ namespace clang::tidy::altera {
1616
1717void SingleWorkItemBarrierCheck::registerMatchers (MatchFinder *Finder) {
1818 // Find any function that calls barrier but does not call an ID function.
19- // hasAttr(attr::Kind::OpenCLKernel ) restricts it to only kernel functions.
19+ // hasAttr(attr::Kind::DeviceKernel ) restricts it to only kernel functions.
2020 // FIXME: Have it accept all functions but check for a parameter that gets an
2121 // ID from one of the four ID functions.
2222 Finder->addMatcher (
2323 // Find function declarations...
2424 functionDecl (
25- // That are OpenCL kernels...
26- hasAttr (attr::Kind::OpenCLKernel ),
25+ // That are device kernels...
26+ hasAttr (attr::Kind::DeviceKernel ),
2727 // And call a barrier function (either 1.x or 2.x version)...
2828 forEachDescendant (callExpr (callee (functionDecl (hasAnyName (
2929 " barrier" , " work_group_barrier" ))))
You can’t perform that action at this time.
0 commit comments