14 #include "llvm/ADT/Hashing.h"
15 #include "llvm/ADT/SmallString.h"
16 #include "llvm/Support/ErrorHandling.h"
17 #include "llvm/Support/Format.h"
18 #include "llvm/Support/FormatVariadic.h"
19 #include "llvm/Support/JSON.h"
20 #include "llvm/Support/Path.h"
21 #include "llvm/Support/raw_ostream.h"
32 llvm::json::Path path) {
33 llvm::json::ObjectMapper o(value, path);
34 return o && o.map(
"uri", result.
uri);
42 return llvm::json::Object{{
"output", value.
output}};
llvm::json::Value toJSON(const URIForFile &value)
Add support for JSON serialization.
bool fromJSON(const llvm::json::Value &value, URIForFile &result, llvm::json::Path path)
Include the generated interface declarations.
This class represents the parameters used when converting between MLIR's bytecode and textual format.
URIForFile uri
The input file containing the bytecode or textual format.
This class represents the result of converting between MLIR's bytecode and textual format.
std::string output
The resultant output of the conversion.