[PATCH] D78034: [mlir][spirv] Improve stride support in array types

Lei Zhang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 20 09:10:33 PDT 2020


antiagainst closed this revision.
antiagainst marked 4 inline comments as done.
antiagainst added inline comments.


================
Comment at: mlir/test/Dialect/SPIRV/structure-ops.mlir:61
   // CHECK: %4 = spv.constant [dense<3.000000e+00> : vector<2xf32>] : !spv.array<1 x vector<2xf32>>
-  // CHECK: %5 = spv.constant dense<1> : tensor<2x3xi32> : !spv.array<2 x !spv.array<3 x i32 [4]> [12]>
-  // CHECK: %6 = spv.constant dense<1.000000e+00> : tensor<2x3xf32> : !spv.array<2 x !spv.array<3 x f32 [4]> [12]>
-  // CHECK: %7 = spv.constant dense<{{\[}}[1, 2, 3], [4, 5, 6]]> : tensor<2x3xi32> : !spv.array<2 x !spv.array<3 x i32 [4]> [12]>
-  // CHECK: %8 = spv.constant dense<{{\[}}[1.000000e+00, 2.000000e+00, 3.000000e+00], [4.000000e+00, 5.000000e+00, 6.000000e+00]]> : tensor<2x3xf32> : !spv.array<2 x !spv.array<3 x f32 [4]> [12]>
+  // CHECK: %5 = spv.constant dense<1> : tensor<2x3xi32> : !spv.array<2 x !spv.array<3 x i32>>
+  // CHECK: %6 = spv.constant dense<1.000000e+00> : tensor<2x3xf32> : !spv.array<2 x !spv.array<3 x f32>>
----------------
bondhugula wrote:
> You don't need the `%<num> =` part. In any case, please don't use numbers in such places.
Good point! Thanks for the catch! Fixed with https://github.com/llvm/llvm-project/commit/f83d502febb54b2cf3866ebea247380cd6263f13. 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D78034/new/

https://reviews.llvm.org/D78034





More information about the llvm-commits mailing list