[Mlir-commits] [mlir] [mlir][spirv] Add basic support for SPV_EXT_replicated_composites (PR #147067)
Mohammadreza Ameri Mahabadian
llvmlistbot at llvm.org
Mon Jul 7 01:33:52 PDT 2025
================
@@ -118,6 +127,33 @@ Serializer::processSpecConstantCompositeOp(spirv::SpecConstantCompositeOp op) {
return processName(resultID, op.getSymName());
}
+LogicalResult Serializer::processSpecConstantCompositeReplicateOp(
+ spirv::EXTSpecConstantCompositeReplicateOp op) {
+ uint32_t typeID = 0;
+ if (failed(processType(op.getLoc(), op.getType(), typeID))) {
+ return failure();
+ }
+
+ auto constituent = dyn_cast<FlatSymbolRefAttr>(op.getConstituent());
+ auto constituentName = constituent.getValue();
+ auto constituentID = getSpecConstID(constituentName);
+ if (!constituentID) {
+ return op.emitError("unknown result <id> for replicated spec constant ")
+ << constituentName;
+ }
+
+ auto resultID = getNextID();
----------------
mahabadm wrote:
Done.
https://github.com/llvm/llvm-project/pull/147067
More information about the Mlir-commits
mailing list