MLIR 22.0.0git
ToolUtilities.h File Reference
#include "mlir/Support/LLVM.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringRef.h"
#include <memory>

Go to the source code of this file.

Namespaces

namespace  llvm
 The OpAsmOpInterface, see OpAsmInterface.td for more details.
namespace  mlir
 Include the generated interface declarations.

Typedefs

using mlir::ChunkBufferHandler
using mlir::NoSourceChunkBufferHandler

Functions

LogicalResult mlir::splitAndProcessBuffer (std::unique_ptr< llvm::MemoryBuffer > originalBuffer, ChunkBufferHandler processChunkBuffer, raw_ostream &os, llvm::StringRef inputSplitMarker=kDefaultSplitMarker, llvm::StringRef outputSplitMarker="")
 Splits the specified buffer on a marker (// ----- by default), processes each chunk independently according to the normal processChunkBuffer logic, and writes all results to os.
LogicalResult mlir::splitAndProcessBuffer (std::unique_ptr< llvm::MemoryBuffer > originalBuffer, NoSourceChunkBufferHandler processChunkBuffer, raw_ostream &os, llvm::StringRef inputSplitMarker=kDefaultSplitMarker, llvm::StringRef outputSplitMarker="")
 Same as above, but for case where the original buffer is not used while processing the chunk.

Variables

const char *const mlir::kDefaultSplitMarker = "// -----"