[Mlir-commits] [mlir] [mlir][spirv] Add conversion pass to rewrite splat constant composite… (PR #148910)
Igor Wodiany
llvmlistbot at llvm.org
Wed Jul 16 03:11:09 PDT 2025
================
@@ -0,0 +1,192 @@
+// RUN: mlir-opt -spirv-replicated-const-composite -split-input-file -verify-diagnostics %s -o - | FileCheck %s
+
+spirv.module Logical GLSL450 {
+ spirv.func @splat_vector_of_i32() -> (vector<3xi32>) "None" {
+ %0 = spirv.Constant dense<2> : vector<3xi32>
+ // CHECK: {{%.*}} = spirv.EXT.ConstantCompositeReplicate [2 : i32] : vector<3xi32>
----------------
IgWod-IMG wrote:
Here and below, should `CHECK` be above `spirv.Constant` for consistency?
https://github.com/llvm/llvm-project/pull/148910
More information about the Mlir-commits
mailing list