[flang-commits] [flang] [llvm] [Flang][OpenMP] add Apply clause for OpenMP Flang (PR #204225)

Ferran Toda via flang-commits flang-commits at lists.llvm.org
Wed Jun 17 06:09:34 PDT 2026


================
@@ -354,11 +359,16 @@ static void emitDirectivesDecl(const RecordKeeper &Records, raw_ostream &OS) {
     OS << "\n";
     OS << "constexpr std::size_t getMaxLeafCount() { return "
        << getMaxLeafCount(DirLang) << "; }\n";
+    OS << "LLVM_ABI bool isAllowedLoopModifier(Directive D, LoopModifier "
+          "LM);\n";
+    OS << "LLVM_ABI StringRef get" << Lang
+       << "LoopModifierName(LoopModifier LM, unsigned Ver = 0);\n";
----------------
NouTimbaler wrote:

I gave it this name to be consistent with the other functions for getting the directive (`getOpenMPDirectiveName`) or clause (`getOpenMPClauseName`) names. All of them in the `llvm::<lang>::` namespace.

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


More information about the flang-commits mailing list