Add a new AttributeElementIterator to DenseElementsAttr.
authorRiver Riddle <riverriddle@google.com>
Thu, 27 Jun 2019 01:49:50 +0000 (18:49 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Thu, 27 Jun 2019 01:50:18 +0000 (18:50 -0700)
commit6ebd6df69fea28abc606b28c5e5791c74cb874a8
tree895a2c1d5336e38df726aa96c273eca253902acb
parent260d3e39ad261fbc07ab564b7de905c01fe1bad6
Add a new AttributeElementIterator to DenseElementsAttr.

This allows for iterating over the internal elements via an iterator_range of Attribute, and also allows for removing the final SmallVectorImpl based 'getValues' method.

PiperOrigin-RevId: 255309555
mlir/include/mlir/IR/Attributes.h
mlir/lib/IR/Attributes.cpp
mlir/lib/Target/LLVMIR/ModuleTranslation.cpp