[PATCH] [OPENMP] Do not emit references to original variables in 'private' clause.

Bataev, Alexey a.bataev at hotmail.com
Wed May 20 20:10:49 PDT 2015


Yeah, I thought about it already. Hope to prepare a fix for it today

Best regards,
Alexey Bataev
=============
Software Engineer
Intel Compiler Team

20.05.2015 20:03, John McCall пишет:
> Sema doesn't know much about the "shareds" structure, either.  To be sure, it builds it as part of building the CapturedStmt, but it's not like Sema creates MemberRefExprs that point into it whenever you refer to a captured variable.  It's not even like lambdas, where that struct type is visible in the enclosing AST.  It's purely an implementation detail.
>
> It should be possible to have EmitDeclRefLValue just delegate to the current CapturedStmtInfo, and then the OpenMP implementations can map privates however they're implemented.
>
>
> http://reviews.llvm.org/D9550
>
> EMAIL PREFERENCES
>    http://reviews.llvm.org/settings/panel/emailpreferences/
>
>





More information about the cfe-commits mailing list