MLIR 22.0.0git
FileUtilities.h File Reference
#include <memory>
#include <string>

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.

Functions

std::unique_ptr< llvm::MemoryBuffer > mlir::openInputFile (llvm::StringRef inputFilename, std::string *errorMessage=nullptr)
 Open the file specified by its name for reading.
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.
std::unique_ptr< llvm::ToolOutputFile > mlir::openOutputFile (llvm::StringRef outputFilename, std::string *errorMessage=nullptr)
 Open the file specified by its name for writing.