13 #ifndef MLIR_SUPPORT_TOOLUTILITIES_H
14 #define MLIR_SUPPORT_TOOLUTILITIES_H
17 #include "llvm/ADT/STLExtras.h"
28 std::unique_ptr<llvm::MemoryBuffer> chunkBuffer, raw_ostream &os)>;
42 bool enableSplitting =
true,
43 bool insertMarkerInOutput =
false);
Include the generated interface declarations.
Include the generated interface declarations.
LogicalResult splitAndProcessBuffer(std::unique_ptr< llvm::MemoryBuffer > originalBuffer, ChunkBufferHandler processChunkBuffer, raw_ostream &os, bool enableSplitting=true, bool insertMarkerInOutput=false)
Splits the specified buffer on a marker (// -----), processes each chunk independently according to t...
This class represents an efficient way to signal success or failure.