From 69efcd03bdb9ee7328dd4e75513ae214c1e23519 Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Thu, 8 Oct 2020 19:40:48 +0000 Subject: [PATCH] Fix typo `DenseElementAttr`-> `DenseElementsAttr` in some comments (NFC) --- mlir/include/mlir/IR/Attributes.h | 2 +- mlir/lib/IR/Attributes.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mlir/include/mlir/IR/Attributes.h b/mlir/include/mlir/IR/Attributes.h index 48ca29d..6e7dd24 100644 --- a/mlir/include/mlir/IR/Attributes.h +++ b/mlir/include/mlir/IR/Attributes.h @@ -632,7 +632,7 @@ using DenseIterPtrAndSplat = llvm::PointerIntPair; -/// 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 diff --git a/mlir/lib/IR/Attributes.cpp b/mlir/lib/IR/Attributes.cpp index a25119f..9aa6bd8 100644 --- a/mlir/lib/IR/Attributes.cpp +++ b/mlir/lib/IR/Attributes.cpp @@ -522,7 +522,7 @@ uint64_t ElementsAttr::getFlattenedIndex(ArrayRef 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 //===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===// -- 2.7.4