MLIR  19.0.0git
Namespaces | Typedefs | Functions
ToolUtilities.h File Reference
#include "mlir/Support/LLVM.h"
#include "llvm/ADT/STLExtras.h"
#include <memory>

Go to the source code of this file.

Namespaces

 llvm
 Include the generated interface declarations.
 
 mlir
 Include the generated interface declarations.
 

Typedefs

using mlir::ChunkBufferHandler = function_ref< LogicalResult(std::unique_ptr< llvm::MemoryBuffer > chunkBuffer, raw_ostream &os)>
 

Functions

LogicalResult mlir::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 the normal processChunkBuffer logic, and writes all results to os. More...