32 "Expected hash table number of words"));
39 "Expected hash table word"));
40 for (
unsigned Idx = 0; Idx < 32; ++Idx)
41 if (Word & (1U << Idx))
42 V.
set((
I * 32) + Idx);
49 constexpr
int BitsPerWord = 8 *
sizeof(
uint32_t);
57 "Could not write linear map number of words"));
62 for (
uint32_t WordIdx = 0; WordIdx < 32; ++WordIdx, ++Idx) {
64 Word |= (1 << WordIdx);
67 return joinErrors(std::move(EC), make_error<RawError>(
69 "Could not write linear map word"));
This class represents lattice values for constants.
Error writeSparseBitVector(BinaryStreamWriter &Writer, SparseBitVector<> &Vec)
Error readInteger(T &Dest)
Read an integer of the specified endianness into Dest and update the stream's offset.
uint64_t alignTo(uint64_t Value, uint64_t Align, uint64_t Skew=0)
Returns the next integer (mod 2**64) that is greater than or equal to Value and is a multiple of Alig...
bool test(unsigned Idx) const
support::ulittle32_t Word
Error readSparseBitVector(BinaryStreamReader &Stream, SparseBitVector<> &V)
Provides write only access to a subclass of WritableBinaryStream.
Error writeInteger(T Value)
Write the integer Value to the underlying stream in the specified endianness.
static ErrorSuccess success()
Create a success value.
Error joinErrors(Error E1, Error E2)
Concatenate errors.
Lightweight error class with error context and mandatory checking.
Provides read only access to a subclass of BinaryStream.