Lines Matching defs:ExecutorSymbolDef
1 //===--------- ExecutorSymbolDef.h - (Addr, Flags) pair ---------*- C++ -*-===//
24 class ExecutorSymbolDef {
26 /// Create an ExecutorSymbolDef from the given pointer.
29 static ExecutorSymbolDef fromPtr(T *Ptr,
36 return ExecutorSymbolDef(
40 /// Cast this ExecutorSymbolDef to a pointer of the given type.
49 /// Cast this ExecutorSymbolDef to a pointer of the given function type.
57 ExecutorSymbolDef() = default;
58 ExecutorSymbolDef(ExecutorAddr Addr, JITSymbolFlags Flags)
67 friend bool operator==(const ExecutorSymbolDef &LHS,
68 const ExecutorSymbolDef &RHS) {
73 friend bool operator!=(const ExecutorSymbolDef &LHS,
74 const ExecutorSymbolDef &RHS) {
115 /// SPS serializatior for ExecutorSymbolDef.
117 class SPSSerializationTraits<SPSExecutorSymbolDef, ExecutorSymbolDef> {
121 static size_t size(const ExecutorSymbolDef &ESD) {
125 static bool serialize(SPSOutputBuffer &BOB, const ExecutorSymbolDef &ESD) {
129 static bool deserialize(SPSInputBuffer &BIB, ExecutorSymbolDef &ESD) {
134 ESD = ExecutorSymbolDef{Addr, Flags};