[clang] [OpenMP] Associate the KernelEnvironment with the GenericKernelTy (PR #70383)

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 29 10:43:06 PDT 2023


================
@@ -4078,8 +4092,20 @@ OpenMPIRBuilder::createTargetInit(const LocationDescription &Loc, bool IsSPMD) {
   Constant *DebugIndentionLevelVal = ConstantInt::getSigned(Int16, 0);
 
   Function *Kernel = Builder.GetInsertBlock()->getParent();
-  auto [MinThreadsVal, MaxThreadsVal] = readThreadBoundsForKernel(*Kernel);
-  auto [MinTeamsVal, MaxTeamsVal] = readTeamBoundsForKernel(*Kernel);
+
+  /// Manifest the launch configuration in the metadata matching the kernel
+  /// environment.
----------------
jhuber6 wrote:

Doxygen comments?

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


More information about the cfe-commits mailing list