14#ifndef JSON_SERIALIZER_H
15#define JSON_SERIALIZER_H
18#include "llvm/Support/JSON.h"
32#define SET_FEATURE(TYPE, _) \
33 void setFeature(const std::string &name, const TYPE value) override { \
36 void setFeature(const std::string &name, const std::vector<TYPE> &value) \
38 J[name] = llvm::json::Array(value); \
49 void *
desJson(llvm::json::Value *V);
#define SUPPORTED_TYPES(M)
#define SET_FEATURE(TYPE, _)
setFeature() is used to set the features of the data structure used for communication.
SerDesKind getKind() const
JsonSerDes - Json Serialization/Deserialization using LLVM's json library.
void * desJson(llvm::json::Value *V)
void * deserializeUntyped(void *data) override
void * getSerializedData() override
static bool classof(const BaseSerDes *S)
void cleanDataStructures() override
SerDesKind
This is the base class for SerDes.