|
LLVM
3.7.0
|
Classes | |
| struct | Writer |
| Adapter to write values to a stream in a particular byte order. More... | |
Functions | |
| template<typename value_type , endianness endian> | |
| value_type | byte_swap (value_type value) |
| Swap the bytes of value to match the given endianness. More... | |
| template<typename value_type , endianness endian, std::size_t alignment> | |
| value_type | read (const void *memory) |
| Read a value of a particular endianness from memory. More... | |
| template<typename value_type , endianness endian, std::size_t alignment, typename CharT > | |
| value_type | readNext (const CharT *&memory) |
| Read a value of a particular endianness from a buffer, and increment the buffer past that value. More... | |
| template<typename value_type , endianness endian, std::size_t alignment> | |
| void | write (void *memory, value_type value) |
| Write a value to memory with a particular endianness. More... | |
| uint16_t | read16le (const void *p) |
| uint32_t | read32le (const void *p) |
| uint64_t | read64le (const void *p) |
| uint16_t | read16be (const void *p) |
| uint32_t | read32be (const void *p) |
| uint64_t | read64be (const void *p) |
| void | write16le (void *p, uint16_t v) |
| void | write32le (void *p, uint32_t v) |
| void | write64le (void *p, uint64_t v) |
| void | write16be (void *p, uint16_t v) |
| void | write32be (void *p, uint32_t v) |
| void | write64be (void *p, uint64_t v) |
|
inline |
Swap the bytes of value to match the given endianness.
Definition at line 39 of file Endian.h.
References llvm::support::big, llvm::sys::IsBigEndianHost, llvm::support::native, and llvm::sys::swapByteOrder().
|
inline |
Read a value of a particular endianness from memory.
Definition at line 49 of file Endian.h.
References LLVM_ASSUME_ALIGNED.
Referenced by llvm::sys::fs::copy_file(), getMemoryBufferForStream(), getOpenFileImpl(), llvm::sys::fs::identify_magic(), and initialize().
|
inline |
|
inline |
Definition at line 211 of file Endian.h.
Referenced by llvm::object::Archive::Symbol::getMember(), and llvm::sys::fs::identify_magic().
|
inline |
Definition at line 215 of file Endian.h.
Referenced by llvm::object::Archive::Symbol::getMember(), llvm::object::Archive::getNumberOfSymbols(), and llvm::object::Archive::symbol_begin().
|
inline |
Definition at line 212 of file Endian.h.
Referenced by llvm::object::Archive::Symbol::getMember(), llvm::object::Archive::Symbol::getNext(), llvm::object::Archive::getNumberOfSymbols(), llvm::sys::fs::identify_magic(), llvm::SkipBitcodeWrapperHeader(), and llvm::object::Archive::symbol_begin().
|
inline |
Definition at line 216 of file Endian.h.
Referenced by llvm::object::Archive::Symbol::getMember(), llvm::object::Archive::getNumberOfSymbols(), and llvm::object::Archive::symbol_begin().
|
inline |
Definition at line 213 of file Endian.h.
Referenced by llvm::DIEHash::computeCUSignature(), llvm::DIEHash::computeDIEODRSignature(), llvm::DIEHash::computeTypeSignature(), and makeTypeSignature().
|
inline |
|
inline |
Write a value to memory with a particular endianness.
Definition at line 73 of file Endian.h.
References LLVM_ASSUME_ALIGNED.
Referenced by llvm::R600InstrInfo::buildSlotOfVectorInstruction(), llvm::sys::fs::copy_file(), llvm::R600InstrInfo::getFlagOp(), getSlotedOps(), initialize(), print32(), llvm::report_fatal_error(), llvm::support::endian::Writer< endian >::write(), llvm::MCObjectWriter::writeBE16(), llvm::MCObjectWriter::writeBE32(), llvm::MCObjectWriter::writeBE64(), llvm::MCObjectWriter::writeLE16(), llvm::MCObjectWriter::writeLE32(), and llvm::MCObjectWriter::writeLE64().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 219 of file Endian.h.
Referenced by WriteInt32ToBuffer().
|
inline |
1.8.6