13 #ifndef MLIR_SUPPORT_FILEUTILITIES_H_ 14 #define MLIR_SUPPORT_FILEUTILITIES_H_ 29 std::unique_ptr<llvm::MemoryBuffer>
31 std::string *errorMessage =
nullptr);
35 std::unique_ptr<llvm::ToolOutputFile>
37 std::string *errorMessage =
nullptr);
41 #endif // MLIR_SUPPORT_FILEUTILITIES_H_ Include the generated interface declarations.
The OpAsmOpInterface, see OpAsmInterface.td for more details.
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.