[Mlir-commits] [mlir] b395c0f - [mlir] Update comment now that DenseArrayAttr has Tensor type.
Adrian Kuegel
llvmlistbot at llvm.org
Tue Aug 2 03:31:51 PDT 2022
Author: Adrian Kuegel
Date: 2022-08-02T12:31:22+02:00
New Revision: b395c0f0cdbf60bb86cb30bd403ac82227d0f2da
URL: https://github.com/llvm/llvm-project/commit/b395c0f0cdbf60bb86cb30bd403ac82227d0f2da
DIFF: https://github.com/llvm/llvm-project/commit/b395c0f0cdbf60bb86cb30bd403ac82227d0f2da.diff
LOG: [mlir] Update comment now that DenseArrayAttr has Tensor type.
Added:
Modified:
mlir/include/mlir/IR/Builders.h
Removed:
################################################################################
diff --git a/mlir/include/mlir/IR/Builders.h b/mlir/include/mlir/IR/Builders.h
index 3337ef66ba5a0..29e42768b2b95 100644
--- a/mlir/include/mlir/IR/Builders.h
+++ b/mlir/include/mlir/IR/Builders.h
@@ -130,14 +130,6 @@ class Builder {
DenseIntElementsAttr getI64VectorAttr(ArrayRef<int64_t> values);
DenseIntElementsAttr getIndexVectorAttr(ArrayRef<int64_t> values);
- /// Vector-typed DenseArrayAttr getters.
- DenseI8ArrayAttr getDenseI8ArrayAttr(ArrayRef<int8_t> values);
- DenseI16ArrayAttr getDenseI16ArrayAttr(ArrayRef<int16_t> values);
- DenseI32ArrayAttr getDenseI32ArrayAttr(ArrayRef<int32_t> values);
- DenseI64ArrayAttr getDenseI64ArrayAttr(ArrayRef<int64_t> values);
- DenseF32ArrayAttr getDenseF32ArrayAttr(ArrayRef<float> values);
- DenseF64ArrayAttr getDenseF64ArrayAttr(ArrayRef<double> 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 @@ class Builder {
DenseIntElementsAttr getI64TensorAttr(ArrayRef<int64_t> values);
DenseIntElementsAttr getIndexTensorAttr(ArrayRef<int64_t> values);
+ /// Tensor-typed DenseArrayAttr getters.
+ DenseI8ArrayAttr getDenseI8ArrayAttr(ArrayRef<int8_t> values);
+ DenseI16ArrayAttr getDenseI16ArrayAttr(ArrayRef<int16_t> values);
+ DenseI32ArrayAttr getDenseI32ArrayAttr(ArrayRef<int32_t> values);
+ DenseI64ArrayAttr getDenseI64ArrayAttr(ArrayRef<int64_t> values);
+ DenseF32ArrayAttr getDenseF32ArrayAttr(ArrayRef<float> values);
+ DenseF64ArrayAttr getDenseF64ArrayAttr(ArrayRef<double> values);
+
ArrayAttr getAffineMapArrayAttr(ArrayRef<AffineMap> values);
ArrayAttr getBoolArrayAttr(ArrayRef<bool> values);
ArrayAttr getI32ArrayAttr(ArrayRef<int32_t> values);
More information about the Mlir-commits
mailing list