[PATCH] D155633: [OpenMP][OpenMPIRBuilder] Add kernel launch codegen to emitTargetCall
Johannes Doerfert via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 26 08:50:20 PDT 2023
jdoerfert added inline comments.
================
Comment at: llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp:4390
+ [&OMPBuilder, &Builder, &Inputs, &CBFunc,
+ &AllocaIP](StringRef EntryFnName) {
return createOutlinedFunction(OMPBuilder, Builder, EntryFnName, Inputs,
----------------
Is the AllocaIP expected to be used later?
================
Comment at: llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp:4403
+ Function *OutlinedFn, Constant *OutlinedFnID,
+ int32_t NumTeams, int32_t NumThreads,
+ SmallVectorImpl<Value *> &Args,
----------------
Is this NumThreads or ThreadLimit, I assume the latter.
================
Comment at: llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp:4419
+ // emitKernelLaunch
+ auto &&emitTargetCallFallbackCB =
+ [&](OpenMPIRBuilder::InsertPointTy IP) -> OpenMPIRBuilder::InsertPointTy {
----------------
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D155633/new/
https://reviews.llvm.org/D155633
More information about the llvm-commits
mailing list