[llvm] [OpenMPIRBuilder] Add support for target workshare loops (PR #73360)
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 28 11:14:37 PST 2023
================
@@ -439,6 +439,16 @@ class OffloadEntriesInfoManager {
/// Each OpenMP directive has a corresponding public generator method.
class OpenMPIRBuilder {
public:
+ /// A type of worksharing loop construct
+ enum class WorksharingLoopType {
+ // Worksharing `for`-loop
+ ForStaticLoop,
+ // Worksharing `distrbute`-loop
+ DistributeStaticLoop,
+ // Worksharing `distrbute parallel for`-loop
+ DistributeForStaticLoop
+ };
----------------
jdoerfert wrote:
Might want to put this into Frontend/OpenMP/OpenMPConstants.h (name is similar at least).
https://github.com/llvm/llvm-project/pull/73360
More information about the llvm-commits
mailing list