[Mlir-commits] [mlir] [mlir] update affine+arith create APIs (1/n) (PR #149656)
Maksim Levental
llvmlistbot at llvm.org
Sat Jul 19 09:44:57 PDT 2025
================
@@ -1747,6 +1747,32 @@ void AffineDmaStartOp::build(OpBuilder &builder, OperationState &result,
}
}
+AffineDmaStartOp AffineDmaStartOp::create(
+ OpBuilder &builder, Location location, Value srcMemRef, AffineMap srcMap,
+ ValueRange srcIndices, Value destMemRef, AffineMap dstMap,
+ ValueRange destIndices, Value tagMemRef, AffineMap tagMap,
+ ValueRange tagIndices, Value numElements, Value stride,
+ Value elementsPerStride) {
+ mlir::OperationState state(location, getOperationName());
+ build(builder, state, srcMemRef, srcMap, srcIndices, destMemRef, dstMap,
+ destIndices, tagMemRef, tagMap, tagIndices, numElements, stride,
+ elementsPerStride);
+ auto result = llvm::dyn_cast<AffineDmaStartOp>(builder.create(state));
----------------
makslevental wrote:
I didn't change anything here - this is clang-format. But I can remove.
https://github.com/llvm/llvm-project/pull/149656
More information about the Mlir-commits
mailing list