[Mlir-commits] [mlir] Adding mlir models (PR #141158)
Paul Kirth
llvmlistbot at llvm.org
Tue May 27 14:58:41 PDT 2025
================
@@ -1025,6 +1056,17 @@ static LogicalResult printFunctionArgs(CppEmitter &emitter,
}));
}
+static LogicalResult printFields(CppEmitter &emitter, Operation *functionOp,
+ Region::BlockArgListType arguments) {
+ raw_indented_ostream &os = emitter.ostream();
+
+ return (interleaveWithNewLineWithError(
+ arguments, os, [&](BlockArgument arg) -> LogicalResult {
+ return emitter.emitVariableDeclaration(
+ functionOp->getLoc(), arg.getType(), emitter.getOrCreateName(arg));
+ }));
----------------
ilovepi wrote:
do you need the parens around the whole expression?
https://github.com/llvm/llvm-project/pull/141158
More information about the Mlir-commits
mailing list