22#include "google/protobuf/extension_set.h"
23#include "google/protobuf/message.h"
24#include "llvm/Support/raw_ostream.h"
32#define SUPPORTED_TYPES(M) \
37 M(std::string, string) \
54#define SET_FEATURE(TYPE, _) \
55 virtual void setFeature(const std::string &, const TYPE) = 0; \
56 virtual void setFeature(const std::string &, const std::vector<TYPE> &){};
61 const google::protobuf::Message *value){};
64 const std::vector<google::protobuf::Message *> &value){};
This file defines the debug macros for the MLCompilerBridge.
#define MLBRIDGE_DEBUG(X)
#define SUPPORTED_TYPES(M)
#define SET_FEATURE(TYPE, _)
setFeature() is used to set the features of the data structure used for communication.
size_t getMessageLength()
virtual void * getResponse()
virtual void setRequest(void *Request)
BaseSerDes(SerDesKind Type)
virtual void setFeature(const std::string &name, const google::protobuf::Message *value)
virtual void cleanDataStructures()=0
virtual void * deserializeUntyped(void *data)=0
virtual void * getRequest()
virtual void setResponse(void *Response)
SerDesKind getKind() const
virtual void setFeature(const std::string &name, const std::vector< google::protobuf::Message * > &value)
virtual void * getSerializedData()=0
SerDesKind
This is the base class for SerDes.