================ @@ -2726,15 +2740,11 @@ class OpenMPIRBuilder { /// /// \param Loc The insert and source location description. /// \param IsSPMD Flag to indicate if the kernel is an SPMD kernel or not. - /// \param MinThreads Minimal number of threads, or 0. - /// \param MaxThreads Maximal number of threads, or 0. - /// \param MinTeams Minimal number of teams, or 0. - /// \param MaxTeams Maximal number of teams, or 0. - InsertPointTy createTargetInit(const LocationDescription &Loc, bool IsSPMD, - int32_t MinThreadsVal = 0, - int32_t MaxThreadsVal = 0, - int32_t MinTeamsVal = 0, - int32_t MaxTeamsVal = 0); + /// \param Attrs Structure containing the default numbers of threads and teams + /// to launch the kernel with. + InsertPointTy createTargetInit( + const LocationDescription &Loc, bool IsSPMD, + const llvm::OpenMPIRBuilder::TargetKernelDefaultAttrs &Attrs); ---------------- jsjodin wrote:
Should IsSPMD also be part of Attrs also? https://github.com/llvm/llvm-project/pull/116050 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits