[llvm-branch-commits] [clang] [llvm] [Clang][OMPX] Add the code generation for multi-dim `thread_limit` clause (PR #102717)
Alexey Bataev via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sat Aug 10 06:25:34 PDT 2024
================
@@ -9588,15 +9588,17 @@ static void genMapInfo(const OMPExecutableDirective &D, CodeGenFunction &CGF,
genMapInfo(MEHandler, CGF, CombinedInfo, OMPBuilder, MappedVarSet);
}
-static void emitNumTeamsForBareTargetDirective(
+template <typename ClauseTy>
+static void emitClauseForBareTargetDirective(
CodeGenFunction &CGF, const OMPExecutableDirective &D,
- llvm::SmallVectorImpl<llvm::Value *> &NumTeams) {
- const auto *C = D.getSingleClause<OMPNumTeamsClause>();
- assert(!C->varlist_empty() && "ompx_bare requires explicit num_teams");
- CodeGenFunction::RunCleanupsScope NumTeamsScope(CGF);
- for (auto *E : C->getNumTeams()) {
+ llvm::SmallVectorImpl<llvm::Value *> &Valuess) {
----------------
alexey-bataev wrote:
Values
https://github.com/llvm/llvm-project/pull/102717
More information about the llvm-branch-commits
mailing list