llvm-project
2f89dcf2 - [mlir][SPIR-V] Deserialize replicated composites as attributes (#214469)

Commit
3 days ago
[mlir][SPIR-V] Deserialize replicated composites as attributes (#214469) Some SPIR-V™ instructions encode attribute-like operands as IDs of constant composite instructions. Deserialization currently fails when such an operand is defined by OpConstantCompositeReplicateEXT instead of OpConstantComposite. Materialize replicated composite constants as splat attributes when they are requested as constants. Check for replicated composites first when materializing SSA values so they remain spirv.EXT.ConstantCompositeReplicate operations.
Author
Parents
Loading