[Mlir-commits] [mlir] [mlir] Enable specifying bytecode producer in mlir-opt. (PR #182846)

Mehdi Amini llvmlistbot at llvm.org
Mon Feb 23 06:12:11 PST 2026


================
@@ -602,7 +607,9 @@ performActions(raw_ostream &os,
   // Print the output.
   TimingScope outputTiming = timing.nest("Output");
   if (config.shouldEmitBytecode()) {
-    BytecodeWriterConfig writerConfig(fallbackResourceMap);
+    std::optional<StringRef> producer = config.bytecodeProducerToEmit();
+    BytecodeWriterConfig writerConfig(
+        fallbackResourceMap, producer.value_or("MLIR" LLVM_VERSION_STRING));
----------------
joker-eph wrote:

That is duplicating the default producer string, can we not provide it here?

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


More information about the Mlir-commits mailing list