[Mlir-commits] [mlir] [mlir-c] Add mlirDialectMaterializeConstant (PR #206553)
Maksim Levental
llvmlistbot at llvm.org
Fri Sep 25 20:05:19 PDT 2026
================
@@ -304,6 +304,18 @@ void mlirIRRewriterDestroy(MlirRewriterBase rewriter) {
delete static_cast<IRRewriter *>(unwrap(rewriter));
}
+//===----------------------------------------------------------------------===//
+/// Dialect constant materialization API
+//===----------------------------------------------------------------------===//
+
+MlirOperation mlirDialectMaterializeConstant(MlirDialect dialect,
+ MlirRewriterBase rewriter,
+ MlirAttribute value, MlirType type,
+ MlirLocation loc) {
+ return wrap(unwrap(dialect)->materializeConstant(
+ *unwrap(rewriter), unwrap(value), unwrap(type), unwrap(loc)));
+}
----------------
makslevental wrote:
ah i missed/forgot that (that the actual API is `OpBuilder`)
https://github.com/llvm/llvm-project/pull/206553
More information about the Mlir-commits
mailing list