[Mlir-commits] [mlir] [mlir][mesh, mpi] More on MeshToMPI (PR #129048)
Christian Ulmann
llvmlistbot at llvm.org
Thu Feb 27 23:35:36 PST 2025
================
@@ -36,10 +42,32 @@ namespace mlir {
} // namespace mlir
using namespace mlir;
-using namespace mlir::mesh;
+using namespace mesh;
namespace {
-// Create operations converting a linear index to a multi-dimensional index
+/// Convert vec of OpFoldResults (ints) into vector of Values.
+static SmallVector<Value> getMixedAsValues(OpBuilder b, const Location &loc,
+ llvm::ArrayRef<int64_t> statics,
+ ValueRange dynamics,
+ Type type = Type()) {
----------------
Dinistro wrote:
Nit: It might be more elegant to use overloading, where the function without a type argument just calls the other one and passed `b.getI64Type()` to it?
https://github.com/llvm/llvm-project/pull/129048
More information about the Mlir-commits
mailing list