[clang] [llvm] [AMDGPU] Add a type for the named barrier (PR #113614)

Jay Foad via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 29 08:50:01 PDT 2024


================
@@ -839,6 +839,14 @@ Expected<TargetExtType *> TargetExtType::checkParams(TargetExtType *TTy) {
         "target extension type riscv.vector.tuple should have one "
         "type parameter and one integer parameter");
 
+  // Opaque types in the AMDGPU name space.
+  if (TTy->Name == "amdgcn.named.barrier" &&
+      (TTy->getNumTypeParameters() != 0 || TTy->getNumIntParameters() != 1)) {
----------------
jayfoad wrote:

This could also be a good place to check that the "scope" argument is 0, if that is the only supported value.

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


More information about the cfe-commits mailing list