LLVM API Documentation
#include <Deserialize.h>
Public Member Functions | |
| Deserializer (BitstreamReader &stream) | |
| ~Deserializer () | |
| uint64_t | ReadInt () |
| int64_t | ReadSInt () |
| SerializedPtrID | ReadPtrID () |
| bool | ReadBool () |
| template<typename T> | |
| T & | Read (T &X) |
| template<typename T> | |
| T * | Create () |
| char * | ReadCStr (char *cstr=NULL, unsigned MaxLen=0, bool isNullTerm=true) |
| void | ReadCStr (std::vector< char > &buff, bool isNullTerm=false, unsigned Idx=0) |
| template<typename T> | |
| T * | ReadOwnedPtr (bool AutoRegister=true) |
| template<typename T, typename Arg1> | |
| T * | ReadOwnedPtr (Arg1 &arg1, bool AutoRegister=true) |
| template<typename T> | |
| void | ReadOwnedPtr (T *&Ptr, bool AutoRegister=true) |
| template<typename T1, typename T2> | |
| void | BatchReadOwnedPtrs (T1 *&P1, T2 *&P2, bool A1=true, bool A2=true) |
| template<typename T1, typename T2, typename Arg1> | |
| void | BatchReadOwnedPtrs (T1 *&P1, T2 *&P2, Arg1 &arg1, bool A1=true, bool A2=true) |
| template<typename T1, typename T2, typename T3> | |
| void | BatchReadOwnedPtrs (T1 *&P1, T2 *&P2, T3 *&P3, bool A1=true, bool A2=true, bool A3=true) |
| template<typename T1, typename T2, typename T3, typename Arg1> | |
| void | BatchReadOwnedPtrs (T1 *&P1, T2 *&P2, T3 *&P3, Arg1 &arg1, bool A1=true, bool A2=true, bool A3=true) |
| template<typename T> | |
| void | BatchReadOwnedPtrs (unsigned NumPtrs, T **Ptrs, bool AutoRegister=true) |
| template<typename T, typename Arg1> | |
| void | BatchReadOwnedPtrs (unsigned NumPtrs, T **Ptrs, Arg1 &arg1, bool AutoRegister=true) |
| template<typename T1, typename T2> | |
| void | BatchReadOwnedPtrs (unsigned NumT1Ptrs, T1 **Ptrs, T2 *&P2, bool A1=true, bool A2=true) |
| template<typename T1, typename T2, typename Arg1> | |
| void | BatchReadOwnedPtrs (unsigned NumT1Ptrs, T1 **Ptrs, T2 *&P2, Arg1 &arg1, bool A1=true, bool A2=true) |
| template<typename T1, typename T2, typename T3> | |
| void | BatchReadOwnedPtrs (unsigned NumT1Ptrs, T1 **Ptrs, T2 *&P2, T3 *&P3, bool A1=true, bool A2=true, bool A3=true) |
| template<typename T1, typename T2, typename T3, typename Arg1> | |
| void | BatchReadOwnedPtrs (unsigned NumT1Ptrs, T1 **Ptrs, T2 *&P2, T3 *&P3, Arg1 &arg1, bool A1=true, bool A2=true, bool A3=true) |
| template<typename T> | |
| void | ReadPtr (T *&PtrRef, bool AllowBackpatch=true) |
| template<typename T> | |
| void | ReadPtr (const T *&PtrRef, bool AllowBackpatch=true) |
| template<typename T> | |
| void | ReadPtr (T *&PtrRef, const SerializedPtrID &PtrID, bool AllowBackpatch=true) |
| template<typename T> | |
| void | ReadPtr (const T *&PtrRef, const SerializedPtrID &PtrID, bool AllowBackpatch=true) |
| template<typename T> | |
| T * | ReadPtr () |
| void | ReadUIntPtr (uintptr_t &PtrRef, const SerializedPtrID &PtrID, bool AllowBackpatch=true) |
| void | ReadUIntPtr (uintptr_t &PtrRef, bool AllowBackpatch=true) |
| template<typename T> | |
| T & | ReadRef () |
| void | RegisterPtr (const SerializedPtrID &PtrID, const void *Ptr) |
| void | RegisterPtr (const void *Ptr) |
| template<typename T> | |
| void | RegisterRef (const T &x) |
| template<typename T> | |
| void | RegisterRef (const SerializedPtrID &PtrID, const T &x) |
| Location | getCurrentBlockLocation () |
| unsigned | getCurrentBlockID () |
| unsigned | getAbbrevNo () |
| bool | FinishedBlock (Location BlockLoc) |
| bool | JumpTo (const Location &BlockLoc) |
| void | Rewind () |
| bool | AtEnd () |
| bool | inRecord () |
| void | SkipBlock () |
| bool | SkipToBlock (unsigned BlockID) |
| unsigned | getRecordCode () |
| BitstreamReader & | getStream () |
Classes | |
| struct | BPEntry |
| class | BPKey |
| struct | BPNode |
| struct | Location |
Definition at line 28 of file Deserialize.h.
| Deserializer::Deserializer | ( | BitstreamReader & | stream | ) |
| Deserializer::~Deserializer | ( | ) |
Definition at line 28 of file Deserialize.cpp.
References llvm::DenseMap< KeyT, ValueT, KeyInfoT, ValueInfoT >::begin(), E, llvm::DenseMap< KeyT, ValueT, KeyInfoT, ValueInfoT >::end(), and llvm::SmallVectorImpl< T >::size().
| uint64_t Deserializer::ReadInt | ( | ) |
Definition at line 296 of file Deserialize.cpp.
References inRecord().
Referenced by llvm::APInt::Read(), ReadBool(), ReadCStr(), ReadPtrID(), and ReadSInt().
| int64_t Deserializer::ReadSInt | ( | ) |
| SerializedPtrID llvm::Deserializer::ReadPtrID | ( | ) | [inline] |
Definition at line 140 of file Deserialize.h.
References ReadInt().
Referenced by BatchReadOwnedPtrs(), ReadOwnedPtr(), ReadUIntPtr(), and RegisterPtr().
| bool llvm::Deserializer::ReadBool | ( | ) | [inline] |
| T* llvm::Deserializer::Create | ( | ) | [inline] |
Definition at line 154 of file Deserialize.h.
| char * Deserializer::ReadCStr | ( | char * | cstr = NULL, |
|
| unsigned | MaxLen = 0, |
|||
| bool | isNullTerm = true | |||
| ) |
| void Deserializer::ReadCStr | ( | std::vector< char > & | buff, | |
| bool | isNullTerm = false, |
|||
| unsigned | Idx = 0 | |||
| ) |
| T* llvm::Deserializer::ReadOwnedPtr | ( | bool | AutoRegister = true |
) | [inline] |
| T* llvm::Deserializer::ReadOwnedPtr | ( | Arg1 & | arg1, | |
| bool | AutoRegister = true | |||
| ) | [inline] |
| void llvm::Deserializer::ReadOwnedPtr | ( | T *& | Ptr, | |
| bool | AutoRegister = true | |||
| ) | [inline] |
Definition at line 192 of file Deserialize.h.
| void llvm::Deserializer::BatchReadOwnedPtrs | ( | T1 *& | P1, | |
| T2 *& | P2, | |||
| bool | A1 = true, |
|||
| bool | A2 = true | |||
| ) | [inline] |
| void llvm::Deserializer::BatchReadOwnedPtrs | ( | T1 *& | P1, | |
| T2 *& | P2, | |||
| Arg1 & | arg1, | |||
| bool | A1 = true, |
|||
| bool | A2 = true | |||
| ) | [inline] |
| void llvm::Deserializer::BatchReadOwnedPtrs | ( | T1 *& | P1, | |
| T2 *& | P2, | |||
| T3 *& | P3, | |||
| bool | A1 = true, |
|||
| bool | A2 = true, |
|||
| bool | A3 = true | |||
| ) | [inline] |
| void llvm::Deserializer::BatchReadOwnedPtrs | ( | T1 *& | P1, | |
| T2 *& | P2, | |||
| T3 *& | P3, | |||
| Arg1 & | arg1, | |||
| bool | A1 = true, |
|||
| bool | A2 = true, |
|||
| bool | A3 = true | |||
| ) | [inline] |
| void llvm::Deserializer::BatchReadOwnedPtrs | ( | unsigned | NumPtrs, | |
| T ** | Ptrs, | |||
| bool | AutoRegister = true | |||
| ) | [inline] |
Definition at line 261 of file Deserialize.h.
References llvm::SmallVectorImpl< T >::push_back(), ReadPtrID(), RegisterPtr(), and T.
| void llvm::Deserializer::BatchReadOwnedPtrs | ( | unsigned | NumPtrs, | |
| T ** | Ptrs, | |||
| Arg1 & | arg1, | |||
| bool | AutoRegister = true | |||
| ) | [inline] |
Definition at line 280 of file Deserialize.h.
References llvm::SmallVectorImpl< T >::push_back(), ReadPtrID(), RegisterPtr(), and T.
| void llvm::Deserializer::BatchReadOwnedPtrs | ( | unsigned | NumT1Ptrs, | |
| T1 ** | Ptrs, | |||
| T2 *& | P2, | |||
| bool | A1 = true, |
|||
| bool | A2 = true | |||
| ) | [inline] |
Definition at line 301 of file Deserialize.h.
References llvm::SmallVectorImpl< T >::push_back(), ReadPtrID(), and RegisterPtr().
| void llvm::Deserializer::BatchReadOwnedPtrs | ( | unsigned | NumT1Ptrs, | |
| T1 ** | Ptrs, | |||
| T2 *& | P2, | |||
| Arg1 & | arg1, | |||
| bool | A1 = true, |
|||
| bool | A2 = true | |||
| ) | [inline] |
Definition at line 327 of file Deserialize.h.
References llvm::SmallVectorImpl< T >::push_back(), ReadPtrID(), and RegisterPtr().
| void llvm::Deserializer::BatchReadOwnedPtrs | ( | unsigned | NumT1Ptrs, | |
| T1 ** | Ptrs, | |||
| T2 *& | P2, | |||
| T3 *& | P3, | |||
| bool | A1 = true, |
|||
| bool | A2 = true, |
|||
| bool | A3 = true | |||
| ) | [inline] |
Definition at line 353 of file Deserialize.h.
References llvm::SmallVectorImpl< T >::push_back(), ReadPtrID(), and RegisterPtr().
| void llvm::Deserializer::BatchReadOwnedPtrs | ( | unsigned | NumT1Ptrs, | |
| T1 ** | Ptrs, | |||
| T2 *& | P2, | |||
| T3 *& | P3, | |||
| Arg1 & | arg1, | |||
| bool | A1 = true, |
|||
| bool | A2 = true, |
|||
| bool | A3 = true | |||
| ) | [inline] |
Definition at line 384 of file Deserialize.h.
References llvm::SmallVectorImpl< T >::push_back(), ReadPtrID(), and RegisterPtr().
| void llvm::Deserializer::ReadPtr | ( | T *& | PtrRef, | |
| bool | AllowBackpatch = true | |||
| ) | [inline] |
| void llvm::Deserializer::ReadPtr | ( | const T *& | PtrRef, | |
| bool | AllowBackpatch = true | |||
| ) | [inline] |
| void llvm::Deserializer::ReadPtr | ( | T *& | PtrRef, | |
| const SerializedPtrID & | PtrID, | |||
| bool | AllowBackpatch = true | |||
| ) | [inline] |
| void llvm::Deserializer::ReadPtr | ( | const T *& | PtrRef, | |
| const SerializedPtrID & | PtrID, | |||
| bool | AllowBackpatch = true | |||
| ) | [inline] |
| T* llvm::Deserializer::ReadPtr | ( | ) | [inline] |
| void Deserializer::ReadUIntPtr | ( | uintptr_t & | PtrRef, | |
| const SerializedPtrID & | PtrID, | |||
| bool | AllowBackpatch = true | |||
| ) |
Definition at line 366 of file Deserialize.cpp.
References llvm::BumpPtrAllocator::Allocate(), llvm::cerr(), E, and llvm::DenseMap< KeyT, ValueT, KeyInfoT, ValueInfoT >::FindAndConstruct().
Referenced by ReadPtr(), and ReadUIntPtr().
| void llvm::Deserializer::ReadUIntPtr | ( | uintptr_t & | PtrRef, | |
| bool | AllowBackpatch = true | |||
| ) | [inline] |
| T& llvm::Deserializer::ReadRef | ( | ) | [inline] |
| void Deserializer::RegisterPtr | ( | const SerializedPtrID & | PtrID, | |
| const void * | Ptr | |||
| ) |
Definition at line 352 of file Deserialize.cpp.
References llvm::cerr(), E, and llvm::DenseMap< KeyT, ValueT, KeyInfoT, ValueInfoT >::FindAndConstruct().
Referenced by BatchReadOwnedPtrs(), ReadOwnedPtr(), RegisterPtr(), and RegisterRef().
| void llvm::Deserializer::RegisterPtr | ( | const void * | Ptr | ) | [inline] |
| void llvm::Deserializer::RegisterRef | ( | const T & | x | ) | [inline] |
| void llvm::Deserializer::RegisterRef | ( | const SerializedPtrID & | PtrID, | |
| const T & | x | |||
| ) | [inline] |
| Deserializer::Location Deserializer::getCurrentBlockLocation | ( | ) |
| unsigned Deserializer::getCurrentBlockID | ( | ) |
| unsigned Deserializer::getAbbrevNo | ( | ) |
| bool Deserializer::FinishedBlock | ( | Location | BlockLoc | ) |
| bool Deserializer::JumpTo | ( | const Location & | BlockLoc | ) |
Definition at line 163 of file Deserialize.cpp.
References AtEnd(), llvm::Deserializer::Location::BitNo, llvm::BitstreamReader::BlockScope, llvm::bitc::ENTER_SUBBLOCK, llvm::BitstreamReader::EnterSubBlock(), inRecord(), llvm::BitstreamReader::JumpToBit(), llvm::BitstreamReader::PopBlockScope(), and SkipBlock().
| void Deserializer::Rewind | ( | ) |
Definition at line 238 of file Deserialize.cpp.
References llvm::BitstreamReader::BlockScope, llvm::BitstreamReader::JumpToBit(), and llvm::BitstreamReader::PopBlockScope().
| bool Deserializer::AtEnd | ( | ) |
Definition at line 286 of file Deserialize.cpp.
References inRecord().
Referenced by JumpTo(), SkipBlock(), and SkipToBlock().
| bool Deserializer::inRecord | ( | ) |
Definition at line 40 of file Deserialize.cpp.
References llvm::SmallVectorImpl< T >::clear(), and llvm::SmallVectorImpl< T >::size().
Referenced by AtEnd(), FinishedBlock(), getAbbrevNo(), getCurrentBlockID(), getCurrentBlockLocation(), getRecordCode(), JumpTo(), ReadInt(), SkipBlock(), and SkipToBlock().
| void Deserializer::SkipBlock | ( | ) |
Definition at line 124 of file Deserialize.cpp.
References AtEnd(), llvm::bitc::ENTER_SUBBLOCK, inRecord(), and llvm::BitstreamReader::SkipBlock().
Referenced by JumpTo(), and SkipToBlock().
| bool Deserializer::SkipToBlock | ( | unsigned | BlockID | ) |
Definition at line 140 of file Deserialize.cpp.
References AtEnd(), llvm::bitc::ENTER_SUBBLOCK, getCurrentBlockID(), inRecord(), and SkipBlock().
| unsigned Deserializer::getRecordCode | ( | ) |
Definition at line 257 of file Deserialize.cpp.
References inRecord(), and llvm::bitc::UNABBREV_RECORD.
| BitstreamReader& llvm::Deserializer::getStream | ( | ) | [inline] |
Definition at line 485 of file Deserialize.h.