[llvm-branch-commits] [clang] [llvm] [Clang][OMPX] Add the code generation for multi-dim `num_teams` (PR #101407)

Shilei Tian via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Aug 1 16:04:07 PDT 2024


================
@@ -9576,6 +9576,20 @@ static void genMapInfo(const OMPExecutableDirective &D, CodeGenFunction &CGF,
                         MappedVarSet, CombinedInfo);
   genMapInfo(MEHandler, CGF, CombinedInfo, OMPBuilder, MappedVarSet);
 }
+
+static void emitNumTeamsForBareTargetDirective(
+    CodeGenFunction &CGF, const OMPExecutableDirective &D,
+    llvm::SmallVectorImpl<llvm::Value *> &NumTeams) {
----------------
shiltian wrote:

Nah, I need to call `push_back` or something similar in the function.

https://github.com/llvm/llvm-project/pull/101407


More information about the llvm-branch-commits mailing list