[llvm] [OpenMP][OMPIRBuilder] Add support to omp target parallel (PR #67000)

via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 19 13:59:42 PDT 2023


================
@@ -522,6 +522,7 @@ struct OMPInformationCache : public InformationCache {
   void recollectUses() {
     for (int Idx = 0; Idx < RFIs.size(); ++Idx)
       recollectUsesForFunction(static_cast<RuntimeFunction>(Idx));
+    OMPBuilder.Config.IsTargetDevice = isOpenMPDevice(OMPBuilder.M);
----------------
shraiysh wrote:

Just curious, why do we need this? And why is this not set during the construction of the optimizer by the caller itself?

https://github.com/llvm/llvm-project/pull/67000


More information about the llvm-commits mailing list