MLCompilerBridge
Tools for streamlining communication with ML models for compiler optimizations.
Loading...
Searching...
No Matches
Classes | Namespaces | Macros
jsonSerDes.h File Reference

Json Serialization/Deserialization using LLVM's json library. More...

#include "SerDes/baseSerDes.h"
#include "llvm/Support/JSON.h"
#include <string>
#include <utility>
Include dependency graph for jsonSerDes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MLBridge::JsonSerDes
 JsonSerDes - Json Serialization/Deserialization using LLVM's json library. More...
 

Namespaces

namespace  MLBridge
 

Macros

#define SET_FEATURE(TYPE, _)
 

Detailed Description

Json Serialization/Deserialization using LLVM's json library.

Definition in file jsonSerDes.h.

Macro Definition Documentation

◆ SET_FEATURE

#define SET_FEATURE ( TYPE,
_ )
Value:
void setFeature(const std::string &name, const TYPE value) override { \
J[name] = value; \
} \
void setFeature(const std::string &name, const std::vector<TYPE> &value) \
override { \
J[name] = llvm::json::Array(value); \
}

Definition at line 32 of file jsonSerDes.h.