13#ifndef MLIR_SUPPORT_FILEUTILITIES_H_
14#define MLIR_SUPPORT_FILEUTILITIES_H_
30std::unique_ptr<llvm::MemoryBuffer>
32 std::string *errorMessage =
nullptr);
36std::unique_ptr<llvm::MemoryBuffer>
37openInputFile(llvm::StringRef inputFilename, llvm::Align alignment,
38 std::string *errorMessage =
nullptr);
42std::unique_ptr<llvm::ToolOutputFile>
44 std::string *errorMessage =
nullptr);
The OpAsmOpInterface, see OpAsmInterface.td for more details.
Include the generated interface declarations.
std::unique_ptr< llvm::ToolOutputFile > openOutputFile(llvm::StringRef outputFilename, std::string *errorMessage=nullptr)
Open the file specified by its name for writing.
std::unique_ptr< llvm::MemoryBuffer > openInputFile(llvm::StringRef inputFilename, std::string *errorMessage=nullptr)
Open the file specified by its name for reading.