[Mlir-commits] [mlir] [MLIR][Mesh] Add sharding propagation pass (PR #69665)
Mehdi Amini
llvmlistbot at llvm.org
Thu Nov 2 16:41:49 PDT 2023
================
@@ -316,6 +316,15 @@ ArrayAttr Builder::getStrArrayAttr(ArrayRef<StringRef> values) {
return getArrayAttr(attrs);
}
+ArrayAttr
+Builder::getArrayOfI32ArrayAttr(ArrayRef<SmallVector<int32_t>> values) {
+ auto attrs =
+ llvm::map_to_vector<8>(values, [this](ArrayRef<int32_t> v) -> Attribute {
+ return getDenseI32ArrayAttr(v);
+ });
+ return getArrayAttr(attrs);
+}
----------------
joker-eph wrote:
This isn't used?
https://github.com/llvm/llvm-project/pull/69665
More information about the Mlir-commits
mailing list