[Mlir-commits] [mlir] [mlir] update affine+arith create APIs (1/n) (PR #149656)
Jakub Kuderski
llvmlistbot at llvm.org
Sat Jul 19 09:25:16 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));
----------------
kuhar wrote:
nit: I don't think we need these `llvm::` namespaces being explicit in front of casts. Also everywhere else.
https://github.com/llvm/llvm-project/pull/149656
More information about the Mlir-commits
mailing list