new altera single work item barrier check
authorFrank Derry Wanye <wanyef@mail.gvsu.edu>
Fri, 18 Dec 2020 12:49:48 +0000 (07:49 -0500)
committerAaron Ballman <aaron@aaronballman.com>
Fri, 18 Dec 2020 12:52:20 +0000 (07:52 -0500)
commite69e551e0e5fddffb6479da6a2998457104ba9e6
tree6f1abd1e280cb340b2a83084a73c844a87dde7d0
parente35f9229dcb264be4a0a1ecf5cca2493f2c48878
new altera single work item barrier check

This lint check is a part of the FLOCL (FPGA Linters for OpenCL)
project out of the Synergy Lab at Virginia Tech.

FLOCL is a set of lint checks aimed at FPGA developers who write code
in OpenCL.

The altera single work item barrier check finds OpenCL kernel functions
that call a barrier function but do not call an ID function. These
kernel functions will be treated as single work-item kernels, which
could be inefficient or lead to errors.

Based on the "Altera SDK for OpenCL: Best Practices Guide."
clang-tools-extra/clang-tidy/altera/AlteraTidyModule.cpp
clang-tools-extra/clang-tidy/altera/CMakeLists.txt
clang-tools-extra/clang-tidy/altera/SingleWorkItemBarrierCheck.cpp [new file with mode: 0644]
clang-tools-extra/clang-tidy/altera/SingleWorkItemBarrierCheck.h [new file with mode: 0644]
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/altera-single-work-item-barrier.rst [new file with mode: 0644]
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/test/clang-tidy/checkers/altera-single-work-item-barrier.cpp [new file with mode: 0644]