[llvm-branch-commits] [flang] [Flang][OpenMP] Derived type explicit allocatable member mapping (PR #96266)

Sergio Afonso via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Jul 29 05:49:07 PDT 2024


================
@@ -671,4 +672,51 @@ static inline bool isEqual(const Fortran::lower::SomeExpr *x,
 }
 } // end namespace Fortran::lower
 
+// OpenMP utility functions used in locations outside of the
+// OpenMP lowering.
+namespace Fortran::lower::omp {
+
+[[maybe_unused]] static void fillMemberIndices(
+    llvm::SmallVector<llvm::SmallVector<int>> &memberPlacementData) {
----------------
skatrak wrote:

Nit: Use `llvm::SmallVectorImpl` to avoid hardcoding the "small size" of the vector into the function definition. 

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


More information about the llvm-branch-commits mailing list