================
@@ -2865,12 +2865,11 @@ void CodeGenModule::ConstructAttributeList(StringRef 
Name,
                                  NumElemsParam);
     }
 
-    // OpenCL v2.0 Work groups may be whether uniform or not.
-    // '-cl-uniform-work-group-size' compile option gets a hint
-    // to the compiler that the global work-size be a multiple of
-    // the work-group size specified to clEnqueueNDRangeKernel
-    // (i.e. work groups are uniform).
-    if (getLangOpts().OffloadUniformBlock)
+    // Leftover work-groups are an OpenCL 2.0+ language feature. Host C/C++
+    // inherit OffloadUniformBlock but must not receive the GPU ABI attribute.
----------------
arsenm wrote:

This is not an ABI attribute and the target triple checks should be dropped. 
This should directly consume OffloadUniformBlock like before 

https://github.com/llvm/llvm-project/pull/221279
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to