14 #include "llvm/Support/JSON.h"
22 llvm::json::Path path) {
23 llvm::json::ObjectMapper o(value, path);
24 return o && o.map(
"uri", result.
uri);
32 return llvm::json::Object{{
"output", value.
output}};
llvm::json::Value toJSON(const MLIRConvertBytecodeResult &value)
Add support for JSON serialization.
bool fromJSON(const llvm::json::Value &value, MLIRConvertBytecodeParams &result, llvm::json::Path path)
Add support for JSON serialization.
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.