1
- // ===- LayoutTest.cpp - unit tests related to memref layout --------------===//
1
+ // ===- LayoutTest.cpp - unit tests related to memref layout --------------- ===//
2
2
//
3
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
4
// See https://llvm.org/LICENSE.txt for license information.
@@ -19,8 +19,8 @@ TEST(MemRefLayout, maxContigDim) {
19
19
MLIRContext ctx;
20
20
OpBuilder b (&ctx);
21
21
22
- const auto _ = ShapedType::kDynamic ;
23
- const auto f32 = b.getF32Type ();
22
+ const int64_t _ = ShapedType::kDynamic ;
23
+ const FloatType f32 = b.getF32Type ();
24
24
auto strided = [&ctx](ArrayRef<int64_t > s) {
25
25
return StridedLayoutAttr::get (&ctx, 0 , s);
26
26
};
@@ -102,8 +102,8 @@ TEST(MemRefLayout, contigTrailingDim) {
102
102
MLIRContext ctx;
103
103
OpBuilder b (&ctx);
104
104
105
- const auto _ = ShapedType::kDynamic ;
106
- const auto f32 = b.getF32Type ();
105
+ const int64_t _ = ShapedType::kDynamic ;
106
+ const FloatType f32 = b.getF32Type ();
107
107
auto strided = [&ctx](ArrayRef<int64_t > s) {
108
108
return StridedLayoutAttr::get (&ctx, 0 , s);
109
109
};
@@ -191,8 +191,8 @@ TEST(MemRefLayout, identityMaps) {
191
191
MLIRContext ctx;
192
192
OpBuilder b (&ctx);
193
193
194
- const auto _ = ShapedType::kDynamic ;
195
- const auto f32 = b.getF32Type ();
194
+ const int64_t _ = ShapedType::kDynamic ;
195
+ const FloatType f32 = b.getF32Type ();
196
196
197
197
// memref<2x2x2xf32>
198
198
auto m1 = MemRefType::get ({2 , 2 , 2 }, f32 );
0 commit comments