-omp-mark-declare-target ¶
Marks all functions called by an OpenMP declare target function as declare target
Marks functions contained within the module as declare target if they are called from within an explicitly marked declare target function or a target region (omp.target).
-omp-offload-privatization-prepare ¶
Prepare OpenMP maps for privatization for deferred target tasks
When generating LLVMIR for privatized variables in an OpenMP offloading directive (eg. omp::TargetOp)
that creates a deferred target task (when the nowait clause is used), we need to copy the privatized
variable out of the stack of the generating task and into the heap so that the deferred target task
can still access it. However, if such a privatized variable is also mapped, typically the case for
allocatables, then the corresponding omp::MapInfoOp needs to be fixed up to map the new heap-allocated
variable and not the original variable.
MLIR