[PATCH] D144634: [Clang][OpenMP] Support for Code Generation of loop bind clause
Sunil K via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 1 11:39:39 PDT 2023
koops added inline comments.
================
Comment at: clang/include/clang/AST/StmtOpenMP.h:291
+ /// the frontend.
+ OpenMPDirectiveKind PrevMappedDirective = llvm::omp::OMPD_unknown;
+
----------------
ABataev wrote:
> I don't see where this field is stored/loaded for PCH support. You need add a support for this in Serialization.
Since the ASTReader and ASTWriter are used by the developer of clang, it is preferable to show the internal state of the compiler as is, e.g. if "#pragma omp loop bind(parallel)" is changed to "#pragma omp for" then the ASTWriter has to show it as "#pragma omp for". I can change it to "#pragma omp loop bind(parallel)" using the MappedDirective that is stored however, that would be misleading to the developer of clang.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144634/new/
https://reviews.llvm.org/D144634
More information about the cfe-commits
mailing list