[Mlir-commits] [mlir] [mlir][spirv] Add basic support for SPV_EXT_replicated_composites (PR #147067)

Mohammadreza Ameri Mahabadian llvmlistbot at llvm.org
Fri Jul 11 08:51:12 PDT 2025


================
@@ -765,6 +765,37 @@ void mlir::spirv::AddressOfOp::getAsmResultNames(
   setNameFn(getResult(), specialName.str());
 }
 
+//===----------------------------------------------------------------------===//
+// spirv.EXTConstantCompositeReplicate
+//===----------------------------------------------------------------------===//
+
+LogicalResult spirv::EXTConstantCompositeReplicateOp::verify() {
+  Type valueType;
+  if (auto typedAttr = dyn_cast<TypedAttr>(getValue())) {
+    valueType = typedAttr.getType();
+  } else if (auto arrayAttr = dyn_cast<ArrayAttr>(getValue())) {
+    auto elementType = dyn_cast<TypedAttr>(arrayAttr[0]).getType();
----------------
mahabadm wrote:

Thank you @Hardcode84 . I have resolved this here and other places.

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


More information about the Mlir-commits mailing list