================
@@ -2814,6 +2817,80 @@ void Verifier::verifyFunctionMetadata(
   }
 }
 
+void Verifier::verifyAMDGPUReqdWorkGroupSize(const Function &F) {
+  if (!TT.isAMDGPU())
+    return;
+
+  MDNode *ReqdWorkGroupSize = F.getMetadata("reqd_work_group_size");
+  if (!ReqdWorkGroupSize)
+    return;
+
+  Check(ReqdWorkGroupSize->getNumOperands() == 3,
+        "reqd_work_group_size must have exactly three operands", &F,
+        ReqdWorkGroupSize);
+  if (ReqdWorkGroupSize->getNumOperands() != 3)
+    return;
----------------
shiltian wrote:

ping

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

Reply via email to