13 #ifndef MLIR_SUPPORT_FILEUTILITIES_H_
14 #define MLIR_SUPPORT_FILEUTILITIES_H_
30 std::unique_ptr<llvm::MemoryBuffer>
32 std::string *errorMessage =
nullptr);
36 std::unique_ptr<llvm::MemoryBuffer>
37 openInputFile(llvm::StringRef inputFilename, llvm::Align alignment,
38 std::string *errorMessage =
nullptr);
42 std::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::MemoryBuffer > openInputFile(llvm::StringRef inputFilename, std::string *errorMessage=nullptr)
Open the file specified by its name for reading.
std::unique_ptr< llvm::ToolOutputFile > openOutputFile(llvm::StringRef outputFilename, std::string *errorMessage=nullptr)
Open the file specified by its name for writing.