[llvm-branch-commits] [Flang][OpenMP][MLIR] Extend derived (record) type map support in Flang OpenMP by adding some initial support for explicit member mapping (PR #81511)

Kareem Ergawy via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Feb 13 06:14:53 PST 2024


================
@@ -72,6 +74,29 @@ getOmpObjectSymbol(const Fortran::parser::OmpObject &ompObject) {
   return sym;
 }
 
+static Fortran::semantics::Symbol *
+getOmpObjectSymbol(const Fortran::parser::OmpObject &ompObject) {
----------------
ergawy wrote:

Instead of having this and the above functions, can we have one function with a `bool getParentObjWhenApplicable` argument?

I am suggesting this because almost all the logic is repeated with the exception of the `StructureComponent` case, right?

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


More information about the llvm-branch-commits mailing list