MLIR  19.0.0git
Namespaces | Functions
FileUtilities.h File Reference
#include <memory>
#include <string>

Go to the source code of this file.

Namespaces

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

Functions

std::unique_ptr< llvm::MemoryBuffer > mlir::openInputFile (llvm::StringRef inputFilename, std::string *errorMessage=nullptr)
 Open the file specified by its name for reading. More...
 
std::unique_ptr< llvm::MemoryBuffer > mlir::openInputFile (llvm::StringRef inputFilename, llvm::Align alignment, std::string *errorMessage=nullptr)
 Open the file specified by its name for reading, with the given buffer alignment constraint. More...
 
std::unique_ptr< llvm::ToolOutputFile > mlir::openOutputFile (llvm::StringRef outputFilename, std::string *errorMessage=nullptr)
 Open the file specified by its name for writing. More...