[PATCH] D105562: [OPENMP]Fix overlapped mapping for dereferenced pointer members.

Jennifer Yu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 8 21:42:06 PDT 2021


jyu2 accepted this revision.
jyu2 added a comment.
This revision is now accepted and ready to land.

This will eliminate some IRS and it works okay with me.   Thanks!  But I don't know enough about this domain, please wait for some time to see if others may command on it.



================
Comment at: clang/test/OpenMP/target_map_codegen_29.cpp:86
+// CK30-DAG: [[SIZE:%.+]] = getelementptr inbounds [4 x i64], [4 x i64]* [[SIZES]], i32 0, i32 1
+// CK30-DAG: store i64 {{56|28}}, i64* [[SIZE]],
 
----------------
So instead generate map for individual pointer field, just generate one for each base with whole struct size.  Make sense.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D105562/new/

https://reviews.llvm.org/D105562



More information about the cfe-commits mailing list