[flang] [llvm] [OpenMP] Allow overriding clause-allowed-on-directive in decomposition (PR #227418)

Abid Qadeer via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 30 02:49:32 PDT 2026


================
@@ -78,12 +78,14 @@ enum struct ErrorCode : int {
 // ClauseType: Either an instance of ClauseT, or a type derived from ClauseT.
 //   This is the clause representation in the code using this infrastructure.
 //
-// HelperType: A class that implements two member functions:
+// HelperType: A class that implements three member functions:
 //   // Return the base object of the given object, if any.
 //   std::optional<Object> getBaseObject(const Object &object) const
 //   // Return the iteration variable of the outermost loop associated
 //   // with the construct being worked on, if any.
 //   std::optional<Object> getLoopIterVar() const
+//   // Is clause C allowed on directive D in version V.
+//   bool isClauseAllowedOnDirective(Clause C, Directive D, Version V) const
----------------
abidh wrote:

The actual function is not const

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


More information about the llvm-commits mailing list