From: Mehdi Amini Date: Thu, 8 Oct 2020 19:40:48 +0000 (+0000) Subject: Fix typo `DenseElementAttr`-> `DenseElementsAttr` in some comments (NFC) X-Git-Tag: llvmorg-13-init~9782 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=69efcd03bdb9ee7328dd4e75513ae214c1e23519;p=platform%2Fupstream%2Fllvm.git Fix typo `DenseElementAttr`-> `DenseElementsAttr` in some comments (NFC) --- 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 //===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//