[flang-commits] [flang] [flang][OpenMP][NFC] Extract enclosing-construct trait collection helper (PR #203924)

Sergio Afonso via flang-commits flang-commits at lists.llvm.org
Mon Jun 15 09:02:29 PDT 2026


================
@@ -1437,6 +1437,31 @@ bool FlangOMPContext::matchesISATrait(llvm::StringRef rawString) const {
   return targetFeatures.contains(("+" + rawString).str());
 }
 
+void collectEnclosingConstructTraits(
+    fir::FirOpBuilder &builder,
----------------
skatrak wrote:

Nit: I think it makes more sense to take an `Operation` as the argument, rather than the full builder only to get the parent of the current insertion point.

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


More information about the flang-commits mailing list