[Mlir-commits] [mlir] 69efcd0 - Fix typo `DenseElementAttr`-> `DenseElementsAttr` in some comments (NFC)

Mehdi Amini llvmlistbot at llvm.org
Thu Oct 8 12:41:26 PDT 2020


Author: Mehdi Amini
Date: 2020-10-08T19:40:48Z
New Revision: 69efcd03bdb9ee7328dd4e75513ae214c1e23519

URL: https://github.com/llvm/llvm-project/commit/69efcd03bdb9ee7328dd4e75513ae214c1e23519
DIFF: https://github.com/llvm/llvm-project/commit/69efcd03bdb9ee7328dd4e75513ae214c1e23519.diff

LOG: Fix typo `DenseElementAttr`-> `DenseElementsAttr` in some comments (NFC)

Added: 
    

Modified: 
    mlir/include/mlir/IR/Attributes.h
    mlir/lib/IR/Attributes.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/IR/Attributes.h b/mlir/include/mlir/IR/Attributes.h
index 48ca29d7625d..6e7dd2463b03 100644
--- a/mlir/include/mlir/IR/Attributes.h
+++ b/mlir/include/mlir/IR/Attributes.h
@@ -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 &>

diff  --git a/mlir/lib/IR/Attributes.cpp b/mlir/lib/IR/Attributes.cpp
index a25119fddada..9aa6bd820072 100644
--- a/mlir/lib/IR/Attributes.cpp
+++ b/mlir/lib/IR/Attributes.cpp
@@ -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
 //===----------------------------------------------------------------------===//
 
 //===----------------------------------------------------------------------===//


        


More information about the Mlir-commits mailing list