[clang] [llvm] [OpenMP] Add runtime selection for metadirective with non-constant conditions. (PR #192455)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 27 07:24:57 PDT 2026


================
@@ -10129,6 +10129,16 @@ class OMPTraitInfo {
     return false;
   }
 
+  /// Check if this trait info contains any user conditions.
+  bool hasUserCondition() const {
+    return llvm::any_of(Sets, [](const OMPTraitSet &Set) {
+      return Set.Kind == llvm::omp::TraitSet::user &&
+             llvm::any_of(Set.Selectors, [](const OMPTraitSelector &Selector) {
+               return Selector.Kind == llvm::omp::TraitSelector::user_condition;
+             });
+    });
+  }
----------------
alexey-bataev wrote:

Unused

https://github.com/llvm/llvm-project/pull/192455


More information about the llvm-commits mailing list