================
@@ -5492,6 +5492,18 @@ bool Type::isCUDADeviceBuiltinTextureType() const {
   return false;
 }
 
+bool Type::isAMDGPUNamedBarrierType() const {
+  const Type *Ty = getUnqualifiedDesugaredType();
+
+  // unwrap arrays
+  while (isa<ArrayType>(Ty))
+    Ty = Ty->getArrayElementTypeNoTypeQual();
----------------
arsenm wrote:

Missing tests for multidimensional array?

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

Reply via email to