LLVM API Documentation
Functions | |
template<typename value_type , endianness endian> | |
value_type | byte_swap (value_type value) |
template<typename value_type , endianness endian, std::size_t alignment> | |
value_type | read (const void *memory) |
template<typename value_type , endianness endian, std::size_t alignment> | |
void | write (void *memory, value_type value) |
|
inline |
Definition at line 39 of file Endian.h.
References llvm::support::big, llvm::sys::IsBigEndianHost, llvm::support::native, and llvm::sys::SwapByteOrder().
|
inline |
Definition at line 48 of file Endian.h.
References LLVM_ASSUME_ALIGNED, and llvm::Intrinsic::memcpy.
|
inline |
Definition at line 61 of file Endian.h.
References LLVM_ASSUME_ALIGNED, and llvm::Intrinsic::memcpy.