From b395c0f0cdbf60bb86cb30bd403ac82227d0f2da Mon Sep 17 00:00:00 2001 From: Adrian Kuegel Date: Tue, 2 Aug 2022 12:31:22 +0200 Subject: [PATCH] [mlir] Update comment now that DenseArrayAttr has Tensor type. --- mlir/include/mlir/IR/Builders.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/mlir/include/mlir/IR/Builders.h b/mlir/include/mlir/IR/Builders.h index 3337ef66ba5a..29e42768b2b9 100644 --- a/mlir/include/mlir/IR/Builders.h +++ b/mlir/include/mlir/IR/Builders.h @@ -130,14 +130,6 @@ public: DenseIntElementsAttr getI64VectorAttr(ArrayRef values); DenseIntElementsAttr getIndexVectorAttr(ArrayRef values); - /// Vector-typed DenseArrayAttr getters. - DenseI8ArrayAttr getDenseI8ArrayAttr(ArrayRef values); - DenseI16ArrayAttr getDenseI16ArrayAttr(ArrayRef values); - DenseI32ArrayAttr getDenseI32ArrayAttr(ArrayRef values); - DenseI64ArrayAttr getDenseI64ArrayAttr(ArrayRef values); - DenseF32ArrayAttr getDenseF32ArrayAttr(ArrayRef values); - DenseF64ArrayAttr getDenseF64ArrayAttr(ArrayRef values); - /// Tensor-typed DenseIntElementsAttr getters. `values` can be empty. /// These are generally preferable for representing general lists of integers /// as attributes. @@ -145,6 +137,14 @@ public: DenseIntElementsAttr getI64TensorAttr(ArrayRef values); DenseIntElementsAttr getIndexTensorAttr(ArrayRef values); + /// Tensor-typed DenseArrayAttr getters. + DenseI8ArrayAttr getDenseI8ArrayAttr(ArrayRef values); + DenseI16ArrayAttr getDenseI16ArrayAttr(ArrayRef values); + DenseI32ArrayAttr getDenseI32ArrayAttr(ArrayRef values); + DenseI64ArrayAttr getDenseI64ArrayAttr(ArrayRef values); + DenseF32ArrayAttr getDenseF32ArrayAttr(ArrayRef values); + DenseF64ArrayAttr getDenseF64ArrayAttr(ArrayRef values); + ArrayAttr getAffineMapArrayAttr(ArrayRef values); ArrayAttr getBoolArrayAttr(ArrayRef values); ArrayAttr getI32ArrayAttr(ArrayRef values);