Skip to content

Commit 69efcd0

Browse files
committed
Fix typo DenseElementAttr-> DenseElementsAttr in some comments (NFC)
1 parent 6aa10ae commit 69efcd0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mlir/include/mlir/IR/Attributes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ using DenseIterPtrAndSplat =
632632
llvm::PointerIntPair<const char *, 1, bool,
633633
DenseElementDataPointerTypeTraits>;
634634

635-
/// Impl iterator for indexed DenseElementAttr iterators that records a data
635+
/// Impl iterator for indexed DenseElementsAttr iterators that records a data
636636
/// pointer and data index that is adjusted for the case of a splat attribute.
637637
template <typename ConcreteT, typename T, typename PointerT = T *,
638638
typename ReferenceT = T &>

mlir/lib/IR/Attributes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ uint64_t ElementsAttr::getFlattenedIndex(ArrayRef<uint64_t> index) const {
522522
}
523523

524524
//===----------------------------------------------------------------------===//
525-
// DenseElementAttr Utilities
525+
// DenseElementsAttr Utilities
526526
//===----------------------------------------------------------------------===//
527527

528528
/// Get the bitwidth of a dense element type within the buffer.
@@ -606,7 +606,7 @@ static bool hasSameElementsOrSplat(ShapedType type, const Values &values) {
606606
}
607607

608608
//===----------------------------------------------------------------------===//
609-
// DenseElementAttr Iterators
609+
// DenseElementsAttr Iterators
610610
//===----------------------------------------------------------------------===//
611611

612612
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)