//===--- UnrollLoopsCheck.h - clang-tidy ------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_ALTERA_UNROLLLOOPSCHECK_H #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_ALTERA_UNROLLLOOPSCHECK_H #include "../ClangTidyCheck.h" namespace clang::tidy::altera { /// Finds inner loops that have not been unrolled, as well as fully unrolled /// loops with unknown loop bounds or a large number of iterations. /// /// Unrolling inner loops could improve the performance of OpenCL kernels. /// However, if they have unknown loop bounds or a large number of iterations, /// they cannot be fully unrolled, and should be partially unrolled. /// /// For the user-facing documentation see: /// http://clang.llvm.org/extra/clang-tidy/checks/altera/unroll-loops.html class UnrollLoopsCheck : public ClangTidyCheck { … }; } // namespace clang::tidy::altera #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_ALTERA_UNROLLLOOPSCHECK_H