[PATCH] D79921: [OpenMP] Fix omp and clang pragmas

2020-05-15 Thread ISHIGURO, Hiroshi via Phabricator via cfe-commits
hishiguro added a comment. Thank you for your comments. I will check those comments. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D79921/new/ https://reviews.llvm.org/D79921 ___ cfe-commits mailing lis

[PATCH] D79921: [OpenMP] Fix omp and clang pragmas

2020-05-14 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev added a comment. Tests? Comment at: clang/lib/CodeGen/CGStmtOpenMP.cpp:1736 + const AttributedStmt *AS = nullptr; + if (auto *OMPD = dyn_cast(&S)) { +const CapturedStmt *CS = OMPD->getCapturedStmt(OMPD_parallel); 1. Cast it to `OMPExecutableDirect

[PATCH] D79921: [OpenMP] Fix omp and clang pragmas

2020-05-14 Thread ISHIGURO, Hiroshi via Phabricator via cfe-commits
hishiguro updated this revision to Diff 263964. hishiguro added a comment. Fix clang-format error. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D79921/new/ https://reviews.llvm.org/D79921 Files: clang/lib/CodeGen/CGStmtOpenMP.cpp Index: clang/

[PATCH] D79921: [OpenMP] Fix omp and clang pragmas

2020-05-13 Thread ISHIGURO, Hiroshi via Phabricator via cfe-commits
hishiguro created this revision. hishiguro added a reviewer: ABataev. hishiguro added a project: clang. Herald added subscribers: cfe-commits, guansong, yaxunl. Herald added a reviewer: jdoerfert. Fixes PR45753 When a program that contains a loop to which both "omp parallel for" pragma and "clan