[llvm] 8890214 - [Frontend][OpenMP] Rename some variables, NFC

Krzysztof Parzyszek via llvm-commits llvm-commits at lists.llvm.org
Tue May 28 08:39:56 PDT 2024


Author: Krzysztof Parzyszek
Date: 2024-05-28T10:38:25-05:00
New Revision: 88902147c11f8de5cc7c792fd8c476a821664297

URL: https://github.com/llvm/llvm-project/commit/88902147c11f8de5cc7c792fd8c476a821664297
DIFF: https://github.com/llvm/llvm-project/commit/88902147c11f8de5cc7c792fd8c476a821664297.diff

LOG: [Frontend][OpenMP] Rename some variables, NFC

Rename things in a couple of places to make the code a bit clearer.

Added: 
    

Modified: 
    llvm/include/llvm/Frontend/OpenMP/ConstructDecompositionT.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Frontend/OpenMP/ConstructDecompositionT.h b/llvm/include/llvm/Frontend/OpenMP/ConstructDecompositionT.h
index 3fa27608ead94..3feb4bd11c998 100644
--- a/llvm/include/llvm/Frontend/OpenMP/ConstructDecompositionT.h
+++ b/llvm/include/llvm/Frontend/OpenMP/ConstructDecompositionT.h
@@ -371,9 +371,8 @@ ConstructDecompositionT<C, H>::addClauseSymsToMap(U &&item,
 // anything and return false, otherwise return true.
 template <typename C, typename H>
 bool ConstructDecompositionT<C, H>::applyToUnique(const ClauseTy *node) {
-  auto unique = detail::find_unique(leafs, [=](const auto &dirInfo) {
-    return llvm::omp::isAllowedClauseForDirective(dirInfo.id, node->id,
-                                                  version);
+  auto unique = detail::find_unique(leafs, [=](const auto &leaf) {
+    return llvm::omp::isAllowedClauseForDirective(leaf.id, node->id, version);
   });
 
   if (unique != leafs.end()) {
@@ -438,8 +437,8 @@ bool ConstructDecompositionT<C, H>::applyToAll(const ClauseTy *node) {
 }
 
 template <typename C, typename H>
-template <typename Clause>
-bool ConstructDecompositionT<C, H>::applyClause(Clause &&clause,
+template <typename Specific>
+bool ConstructDecompositionT<C, H>::applyClause(Specific &&specific,
                                                 const ClauseTy *node) {
   // The default behavior is to find the unique directive to which the
   // given clause may be applied. If there are no such directives, or


        


More information about the llvm-commits mailing list