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

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to