[PATCH] D129008: [Clang][OpenMP] Fix the issue that globalization doesn't work with byval struct function argument
Alexey Bataev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 26 09:07:32 PST 2023
ABataev added a comment.
In D129008#4083150 <https://reviews.llvm.org/D129008#4083150>, @tianshilei1992 wrote:
> @rjmccall @ABataev Thanks for the help. So the basic idea is to build the expressions in Sema for those captured decls and then emit them accordingly in code gen, right?
Yes.
>> There are a bunch of places we do that for various language extensions already, including a bunch in the OpenMP code, and we usually just store the expression in the associated AST node.
>
> Could you please point me a rough location where we already have similar things such that I can learn and do the same thing for globalization? Thanks.
You can check ActOnOpenMPFirstprivateClause, lines 18322-18353 (building of VDInitRefExpr)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D129008/new/
https://reviews.llvm.org/D129008
More information about the cfe-commits
mailing list