@@ -77,7 +77,7 @@ struct CustomDataLayoutSpec
77
77
}
78
78
DataLayoutEntryListRef getEntries () const { return getImpl ()->entries ; }
79
79
LogicalResult verifySpec (Location loc) { return success (); }
80
- StringAttr getEndiannesssIdentifier (MLIRContext *context) const {
80
+ StringAttr getEndiannessIdentifier (MLIRContext *context) const {
81
81
return Builder (context).getStringAttr (kEndiannessKeyName );
82
82
}
83
83
StringAttr getAllocaMemorySpaceIdentifier (MLIRContext *context) const {
@@ -189,7 +189,7 @@ struct SingleQueryType
189
189
return 4 ;
190
190
}
191
191
192
- Attribute getEndiannesss (DataLayoutEntryInterface entry) {
192
+ Attribute getEndianness (DataLayoutEntryInterface entry) {
193
193
static bool executed = false ;
194
194
if (executed)
195
195
llvm::report_fatal_error (" repeated call" );
@@ -463,7 +463,7 @@ module {}
463
463
EXPECT_EQ (layout.getTypePreferredAlignment (IntegerType::get (&ctx, 42 )), 8u );
464
464
EXPECT_EQ (layout.getTypePreferredAlignment (Float16Type::get (&ctx)), 2u );
465
465
466
- EXPECT_EQ (layout.getEndiannesss (), Attribute ());
466
+ EXPECT_EQ (layout.getEndianness (), Attribute ());
467
467
EXPECT_EQ (layout.getAllocaMemorySpace (), Attribute ());
468
468
EXPECT_EQ (layout.getProgramMemorySpace (), Attribute ());
469
469
EXPECT_EQ (layout.getGlobalMemorySpace (), Attribute ());
@@ -495,7 +495,7 @@ TEST(DataLayout, NullSpec) {
495
495
EXPECT_EQ (layout.getTypeIndexBitwidth (Float16Type::get (&ctx)), std::nullopt );
496
496
EXPECT_EQ (layout.getTypeIndexBitwidth (IndexType::get (&ctx)), 64u );
497
497
498
- EXPECT_EQ (layout.getEndiannesss (), Attribute ());
498
+ EXPECT_EQ (layout.getEndianness (), Attribute ());
499
499
EXPECT_EQ (layout.getAllocaMemorySpace (), Attribute ());
500
500
EXPECT_EQ (layout.getProgramMemorySpace (), Attribute ());
501
501
EXPECT_EQ (layout.getGlobalMemorySpace (), Attribute ());
@@ -535,7 +535,7 @@ TEST(DataLayout, EmptySpec) {
535
535
EXPECT_EQ (layout.getTypeIndexBitwidth (Float16Type::get (&ctx)), std::nullopt );
536
536
EXPECT_EQ (layout.getTypeIndexBitwidth (IndexType::get (&ctx)), 64u );
537
537
538
- EXPECT_EQ (layout.getEndiannesss (), Attribute ());
538
+ EXPECT_EQ (layout.getEndianness (), Attribute ());
539
539
EXPECT_EQ (layout.getAllocaMemorySpace (), Attribute ());
540
540
EXPECT_EQ (layout.getProgramMemorySpace (), Attribute ());
541
541
EXPECT_EQ (layout.getGlobalMemorySpace (), Attribute ());
@@ -593,7 +593,7 @@ TEST(DataLayout, SpecWithEntries) {
593
593
EXPECT_EQ (layout.getTypePreferredAlignment (IntegerType::get (&ctx, 32 )), 64u );
594
594
EXPECT_EQ (layout.getTypePreferredAlignment (Float32Type::get (&ctx)), 64u );
595
595
596
- EXPECT_EQ (layout.getEndiannesss (), Builder (&ctx).getStringAttr (" little" ));
596
+ EXPECT_EQ (layout.getEndianness (), Builder (&ctx).getStringAttr (" little" ));
597
597
EXPECT_EQ (layout.getAllocaMemorySpace (), Builder (&ctx).getI32IntegerAttr (5 ));
598
598
EXPECT_EQ (layout.getProgramMemorySpace (), Builder (&ctx).getI32IntegerAttr (3 ));
599
599
EXPECT_EQ (layout.getGlobalMemorySpace (), Builder (&ctx).getI32IntegerAttr (2 ));
0 commit comments