[PATCH] D133802: [OpenMP] Remove simplified device runtime handling

2022-09-13 Thread Joseph Huber via Phabricator via cfe-commits
jhuber6 marked an inline comment as done. jhuber6 added inline comments. Comment at: clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp:1048 CGBuilderTy &Bld = CGF.Builder; - OMPBuilder.createTargetDeinit(Bld, IsSPMD, requiresFullRuntime()); + OMPBuilder.createTargetDeinit(Bld, IsSPMD

[PATCH] D133802: [OpenMP] Remove simplified device runtime handling

2022-09-13 Thread Johannes Doerfert via Phabricator via cfe-commits
jdoerfert accepted this revision. jdoerfert added a comment. This revision is now accepted and ready to land. LG, two comments. Comment at: clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp:1048 CGBuilderTy &Bld = CGF.Builder; - OMPBuilder.createTargetDeinit(Bld, IsSPMD, requiresFul

[PATCH] D133802: [OpenMP] Remove simplified device runtime handling

2022-09-13 Thread Joseph Huber via Phabricator via cfe-commits
jhuber6 added inline comments. Comment at: clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp:1048 CGBuilderTy &Bld = CGF.Builder; - OMPBuilder.createTargetDeinit(Bld, IsSPMD, requiresFullRuntime()); + OMPBuilder.createTargetDeinit(Bld, IsSPMD, true); } jdoerfert wro

[PATCH] D133802: [OpenMP] Remove simplified device runtime handling

2022-09-13 Thread Johannes Doerfert via Phabricator via cfe-commits
jdoerfert added inline comments. Comment at: clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp:1048 CGBuilderTy &Bld = CGF.Builder; - OMPBuilder.createTargetDeinit(Bld, IsSPMD, requiresFullRuntime()); + OMPBuilder.createTargetDeinit(Bld, IsSPMD, true); } So, follow

[PATCH] D133802: [OpenMP] Remove simplified device runtime handling

2022-09-13 Thread Jose Manuel Monsalve Diaz via Phabricator via cfe-commits
josemonsalve2 added inline comments. Comment at: clang/include/clang/Driver/Options.td:2565-2566 Flags<[NoArgumentUnused, HelpHidden]>; -def fopenmp_cuda_force_full_runtime : Flag<["-"], "fopenmp-cuda-force-full-runtime">, Group, - Flags<[CC1Option, NoArgumentUnused, HelpHid

[PATCH] D133802: [OpenMP] Remove simplified device runtime handling

2022-09-13 Thread Johannes Doerfert via Phabricator via cfe-commits
jdoerfert added a comment. Remove the option and let's also remove the device flag too while we are at it. Comment at: clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp:76 CGOpenMPRuntimeGPU::ExecutionMode &ExecMode; bool SavedRuntimeMode = false; Remove =

[PATCH] D133802: [OpenMP] Remove simplified device runtime handling

2022-09-13 Thread Joseph Huber via Phabricator via cfe-commits
jhuber6 added inline comments. Comment at: clang/include/clang/Driver/Options.td:2565-2566 Flags<[NoArgumentUnused, HelpHidden]>; -def fopenmp_cuda_force_full_runtime : Flag<["-"], "fopenmp-cuda-force-full-runtime">, Group, - Flags<[CC1Option, NoArgumentUnused, HelpHidden]>;

[PATCH] D133802: [OpenMP] Remove simplified device runtime handling

2022-09-13 Thread Jose Manuel Monsalve Diaz via Phabricator via cfe-commits
josemonsalve2 added a comment. This is a good idea. Thanks Joseph. Other than the two comments I made, I think this should be accepted. Jose Comment at: clang/include/clang/Driver/Options.td:2565-2566 Flags<[NoArgumentUnused, HelpHidden]>; -def fopenmp_cuda_force_full_runt