Fix typo `DenseElementAttr`-> `DenseElementsAttr` in some comments (NFC)
authorMehdi Amini <joker.eph@gmail.com>
Thu, 8 Oct 2020 19:40:48 +0000 (19:40 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Thu, 8 Oct 2020 19:40:48 +0000 (19:40 +0000)
mlir/include/mlir/IR/Attributes.h
mlir/lib/IR/Attributes.cpp

index 48ca29d..6e7dd24 100644 (file)
@@ -632,7 +632,7 @@ using DenseIterPtrAndSplat =
     llvm::PointerIntPair<const char *, 1, bool,
                          DenseElementDataPointerTypeTraits>;
 
-/// Impl iterator for indexed DenseElementAttr iterators that records a data
+/// Impl iterator for indexed DenseElementsAttr iterators that records a data
 /// pointer and data index that is adjusted for the case of a splat attribute.
 template <typename ConcreteT, typename T, typename PointerT = T *,
           typename ReferenceT = T &>
index a25119f..9aa6bd8 100644 (file)
@@ -522,7 +522,7 @@ uint64_t ElementsAttr::getFlattenedIndex(ArrayRef<uint64_t> index) const {
 }
 
 //===----------------------------------------------------------------------===//
-// DenseElementAttr Utilities
+// DenseElementsAttr Utilities
 //===----------------------------------------------------------------------===//
 
 /// Get the bitwidth of a dense element type within the buffer.
@@ -606,7 +606,7 @@ static bool hasSameElementsOrSplat(ShapedType type, const Values &values) {
 }
 
 //===----------------------------------------------------------------------===//
-// DenseElementAttr Iterators
+// DenseElementsAttr Iterators
 //===----------------------------------------------------------------------===//
 
 //===----------------------------------------------------------------------===//