[flang-commits] [flang] [flang][OpenMP] Implement getOpenMPVersion helper function, NFC (PR #90086)

Sergio Afonso via flang-commits flang-commits at lists.llvm.org
Tue Apr 30 05:10:35 PDT 2024


================
@@ -47,6 +47,12 @@ int64_t getCollapseValue(const List<Clause> &clauses) {
   return 1;
 }
 
+uint32_t getOpenMPVersion(mlir::ModuleOp mod, uint32_t fallback) {
----------------
skatrak wrote:

Nit: Wouldn't it be better placed along with `setOpenMPVersionAttribute` in flang/include/flang/Tools/CrossToolHelpers.h? And perhaps also call it `getOpenMPVersionAttribute` for consistency.

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


More information about the flang-commits mailing list