[PATCH] D100514: [OpenMP] Added codegen for masked directive
Alexey Bataev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 15 05:19:44 PDT 2021
ABataev added inline comments.
================
Comment at: clang/lib/CodeGen/CGStmtOpenMP.cpp:3853-3855
+ if (const auto *FilterClause = S.getSingleClause<OMPFilterClause>()) {
+ Filter = FilterClause->getThreadID();
+ }
----------------
No need for braces here
================
Comment at: clang/test/OpenMP/masked_codegen.cpp:87
+#pragma omp parallel
+#pragma omp masked
+ // TERM_DEBUG-NOT: __kmpc_global_thread_num
----------------
Add a test with `filter` clauses
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D100514/new/
https://reviews.llvm.org/D100514
More information about the llvm-commits
mailing list