[Mlir-commits] [mlir] Adding mlir models (PR #141158)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed May 28 14:48:18 PDT 2025


================
@@ -1140,6 +1226,18 @@ static LogicalResult printOperation(CppEmitter &emitter,
 
   CppEmitter::Scope scope(emitter);
   raw_indented_ostream &os = emitter.ostream();
+  Operation *operation = functionOp.getOperation();
+  if (emitter.shouldPrintClass()) {
+    if (functionOp.isExternal())
+      return failure();
----------------
Jaddyen wrote:

I'm making it fail since it would fail later on, anyway. Also printing out a "Warning".
I've left a TO-DO to allow more discussion within the community in case there is something better that can be done.(As we discussed)

https://github.com/llvm/llvm-project/pull/141158


More information about the Mlir-commits mailing list