Displaying 3 results from an estimated 3 matches for "readunalignedle32".
2014 Mar 22
3
[LLVMdev] [RFC] Moving OnDiskHashTable from clang to LLVM
...ey're obviously related. Endian.h defines types like ulittle32, which
DTRT when read and written from memory, whereas clang::io has functions
to read and write memory like so:
void Emit32(raw_ostream& Out, uint32_t V);
uint32_t ReadLE32(const unsigned char *&Data);
uint32_t ReadUnalignedLE32(const unsigned char *&Data);
The (aligned) ReadLE32 is easily represented by the stuff in Endian.h,
but the write to an ostream and reading unaligned aren't addressed very
well at present.
We could still add this stuff to Endian.h, assuming it isn't an issue to
depend on raw_ostream.h...
2014 Mar 22
3
[LLVMdev] [RFC] Moving OnDiskHashTable from clang to LLVM
I would like to use the on disk hash table that's currently in clang for
instrumentation based profiling. This is a single header file that's
currently found in include/clang/Basic/OnDiskHashTable.h, and I
propose to move it to include/llvm/Support/OnDiskHashTable.h.
Any strong objections to moving this?
Also, the header includes a "clang::io" namespace with some operations
for
2014 Mar 24
2
[LLVMdev] [RFC] Moving OnDiskHashTable from clang to LLVM
...ike ulittle32, which
>> DTRT when read and written from memory, whereas clang::io has functions
>> to read and write memory like so:
>>
>> void Emit32(raw_ostream& Out, uint32_t V);
>> uint32_t ReadLE32(const unsigned char *&Data);
>> uint32_t ReadUnalignedLE32(const unsigned char *&Data);
>>
>> The (aligned) ReadLE32 is easily represented by the stuff in Endian.h,
>> but the write to an ostream and reading unaligned aren't addressed very
>> well at present.
>
> ulittle32 is actually unaligned:
>
> typedef detai...