[flang-commits] [clang] [flang] [llvm] [OpenMP] Make OpenMP version have separate type (PR #219820)

Alexey Bataev via flang-commits flang-commits at lists.llvm.org
Mon Aug 31 13:01:33 PDT 2026


================
@@ -37,6 +37,13 @@ enum class Frontend { LLVM, Flang, Clang };
 static void emitDirectivesConstexprImpl(const DirectiveLanguage &DirLang,
                                         raw_ostream &OS);
 
+static StringRef getVersionType(const DirectiveLanguage &DirLang) {
+  if (DirLang.getName() == "OpenMP") {
+    return "Version";
+  }
----------------
alexey-bataev wrote:

```suggestion
  if (DirLang.getName() == "OpenMP")
    return "Version";
```

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


More information about the flang-commits mailing list