[Mlir-commits] [mlir] [mlir] Make the split markers of splitAndProcessBuffer configurable. (PR #84765)

Mehdi Amini llvmlistbot at llvm.org
Tue Mar 12 14:27:39 PDT 2024


Ingo =?utf-8?q?Müller?= <ingomueller at google.com>,
Ingo =?utf-8?q?Müller?= <ingomueller at google.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/84765 at github.com>


================
@@ -89,7 +88,7 @@ mlir::splitAndProcessBuffer(std::unique_ptr<llvm::MemoryBuffer> originalBuffer,
       hadFailure = true;
   };
   llvm::interleave(sourceBuffers, os, interleaveFn,
-                   insertMarkerInOutput ? "\n// -----\n" : "");
+                   (llvm::Twine(outputSplitMarker) + "\n").str());
----------------
joker-eph wrote:

This inserts a `\n` even if `outputSplitMarker` is empty, it's a change from the previous code, but I don't know if it matters!

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


More information about the Mlir-commits mailing list