new altera unroll loops check
authorFrank Derry Wanye <wanyef@mail.gvsu.edu>
Mon, 22 Mar 2021 17:08:14 +0000 (13:08 -0400)
committerAaron Ballman <aaron@aaronballman.com>
Mon, 22 Mar 2021 17:09:53 +0000 (13:09 -0400)
commit5a87f81fe9aee996dfe3a84dd833f0a48e093e7f
tree0d6cbc8b8c9d26695fdd9d030b4e3f4454a9dc42
parente421a74108ee86afec133c77258470d3ed7dcc90
new altera unroll loops 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 unroll loops check finds inner loops that have not been
unrolled, as well as fully-unrolled loops that should be partially
unrolled due to unknown loop bounds or a large number of loop
iterations.

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/UnrollLoopsCheck.cpp [new file with mode: 0644]
clang-tools-extra/clang-tidy/altera/UnrollLoopsCheck.h [new file with mode: 0644]
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/altera-unroll-loops.rst [new file with mode: 0644]
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/test/clang-tidy/checkers/altera-unroll-loops.cpp [new file with mode: 0644]