LLVM  14.0.0git
Classes | Namespaces | Typedefs | Functions
SimplePackedSerialization.h File Reference
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/SwapByteOrder.h"
#include <limits>
#include <string>
#include <tuple>
#include <type_traits>
#include <utility>
#include <vector>
Include dependency graph for SimplePackedSerialization.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  llvm::orc::shared::SPSOutputBuffer
 Output char buffer with overflow check. More...
 
class  llvm::orc::shared::SPSInputBuffer
 Input char buffer with underflow check. More...
 
class  llvm::orc::shared::SPSSerializationTraits< SPSTagT, ConcreteT, _ >
 Specialize to describe how to serialize/deserialize to/from the given concrete type. More...
 
class  llvm::orc::shared::SPSArgList< ArgTs >
 A utility class for serializing to a blob from a variadic list. More...
 
class  llvm::orc::shared::SPSArgList<>
 
class  llvm::orc::shared::SPSArgList< SPSTagT, SPSTagTs... >
 
class  llvm::orc::shared::SPSSerializationTraits< SPSTagT, SPSTagT, std::enable_if_t< std::is_same< SPSTagT, bool >::value||std::is_same< SPSTagT, char >::value||std::is_same< SPSTagT, int8_t >::value||std::is_same< SPSTagT, int16_t >::value||std::is_same< SPSTagT, int32_t >::value||std::is_same< SPSTagT, int64_t >::value||std::is_same< SPSTagT, uint8_t >::value||std::is_same< SPSTagT, uint16_t >::value||std::is_same< SPSTagT, uint32_t >::value||std::is_same< SPSTagT, uint64_t >::value > >
 SPS serialization for integral types, bool, and char. More...
 
class  llvm::orc::shared::SPSEmpty
 
class  llvm::orc::shared::SPSTuple< SPSTagTs >
 SPS tag type for tuples. More...
 
class  llvm::orc::shared::SPSSequence< SPSElementTagT >
 SPS tag type for sequences. More...
 
class  llvm::orc::shared::SPSExecutorAddr
 SPS tag type for executor addresseses. More...
 
class  llvm::orc::shared::SPSSerializationTraits< SPSExecutorAddr, uint64_t >
 
class  llvm::orc::shared::SPSSerializationTraits< SPSEmpty, SPSEmpty >
 Serialization for SPSEmpty type. More...
 
class  llvm::orc::shared::TrivialSPSSequenceSerialization< SPSElementTagT, ConcreteSequenceT >
 Specialize this to implement 'trivial' sequence serialization for a concrete sequence type. More...
 
class  llvm::orc::shared::TrivialSPSSequenceDeserialization< SPSElementTagT, ConcreteSequenceT >
 Specialize this to implement 'trivial' sequence deserialization for a concrete sequence type. More...
 
class  llvm::orc::shared::TrivialSPSSequenceSerialization< char, std::string >
 Trivial std::string -> SPSSequence<char> serialization. More...
 
class  llvm::orc::shared::TrivialSPSSequenceDeserialization< char, std::string >
 Trivial SPSSequence<char> -> std::string deserialization. More...
 
class  llvm::orc::shared::TrivialSPSSequenceSerialization< SPSElementTagT, std::vector< T > >
 Trivial std::vector<T> -> SPSSequence<SPSElementTagT> serialization. More...
 
class  llvm::orc::shared::TrivialSPSSequenceDeserialization< SPSElementTagT, std::vector< T > >
 Trivial SPSSequence<SPSElementTagT> -> std::vector<T> deserialization. More...
 
class  llvm::orc::shared::TrivialSPSSequenceSerialization< SPSElementTagT, ArrayRef< T > >
 Trivial ArrayRef<T> -> SPSSequence<SPSElementTagT> serialization. More...
 
class  llvm::orc::shared::SPSSerializationTraits< SPSSequence< char >, ArrayRef< char > >
 Specialized SPSSequence<char> -> ArrayRef<char> serialization. More...
 
class  llvm::orc::shared::SPSSerializationTraits< SPSSequence< SPSElementTagT >, SequenceT, std::enable_if_t< TrivialSPSSequenceSerialization< SPSElementTagT, SequenceT >::available > >
 'Trivial' sequence serialization: Sequence is serialized as a uint64_t size followed by a for-earch loop over the elements of the sequence to serialize each of them. More...
 
class  llvm::orc::shared::SPSSerializationTraits< SPSTuple< SPSTagTs... >, std::tuple< Ts... > >
 SPSTuple serialization for std::tuple. More...
 
class  llvm::orc::shared::SPSSerializationTraits< SPSTuple< SPSTagT1, SPSTagT2 >, std::pair< T1, T2 > >
 SPSTuple serialization for std::pair. More...
 
class  llvm::orc::shared::SPSSerializationTraits< SPSString, StringRef >
 Serialization for StringRefs. More...
 
class  llvm::orc::shared::SPSSerializationTraits< SPSSequence< SPSTuple< SPSString, SPSValueT > >, StringMap< ValueT > >
 Serialization for StringMap<ValueT>s. More...
 
class  llvm::orc::shared::SPSExpected< SPSTagT >
 SPS tag type for expecteds, which are either a T or a string representing an error. More...
 
struct  llvm::orc::shared::detail::SPSSerializableError
 Helper type for serializing Errors. More...
 
struct  llvm::orc::shared::detail::SPSSerializableExpected< T >
 Helper type for serializing Expected<T>s. More...
 
class  llvm::orc::shared::SPSSerializationTraits< SPSError, detail::SPSSerializableError >
 Serialize to a SPSError from a detail::SPSSerializableError. More...
 
class  llvm::orc::shared::SPSSerializationTraits< SPSExpected< SPSTagT >, detail::SPSSerializableExpected< T > >
 Serialize to a SPSExpected<SPSTagT> from a detail::SPSSerializableExpected<T>. More...
 
class  llvm::orc::shared::SPSSerializationTraits< SPSExpected< SPSTagT >, detail::SPSSerializableError >
 Serialize to a SPSExpected<SPSTagT> from a detail::SPSSerializableError. More...
 
class  llvm::orc::shared::SPSSerializationTraits< SPSExpected< SPSTagT >, T >
 Serialize to a SPSExpected<SPSTagT> from a T. More...
 

Namespaces

 llvm
 ---------------------— PointerInfo ------------------------------------—
 
 llvm::orc
 
 llvm::orc::shared
 
 llvm::orc::shared::detail
 

Typedefs

using llvm::orc::shared::SPSString = SPSSequence< char >
 SPS tag type for strings, which are equivalent to sequences of chars. More...
 
template<typename SPSTagT1 , typename SPSTagT2 >
using llvm::orc::shared::SPSMap = SPSSequence< SPSTuple< SPSTagT1, SPSTagT2 > >
 SPS tag type for maps. More...
 

Functions

SPSSerializableError llvm::orc::shared::detail::toSPSSerializable (Error Err)
 
Error llvm::orc::shared::detail::fromSPSSerializable (SPSSerializableError BSE)
 
template<typename T >
SPSSerializableExpected< Tllvm::orc::shared::detail::toSPSSerializable (Expected< T > E)
 
template<typename T >
Expected< Tllvm::orc::shared::detail::fromSPSSerializable (SPSSerializableExpected< T > BSE)