24 const UTF8 *
const Begin8Const =
25 reinterpret_cast<const UTF8 *
>(Buffer.
begin());
26 const UTF8 *Begin8 = Begin8Const;
34 Buffer = Buffer.
drop_front(Begin8 - Begin8Const);
49 Begin8 - Storage.
begin());
56 if (C == 0x130 || C == 0x131)
66 std::array<UTF8, UNI_MAX_UTF8_BYTES_PER_CODE_POINT> Storage;
72 while (!Buffer.
empty()) {
73 unsigned char C = Buffer.
front();
77 if (C >=
'A' && C <=
'Z')
static UTF32 foldCharDwarf(UTF32 C)
static uint32_t caseFoldingDjbHashCharSlow(StringRef &Buffer, uint32_t H)
This class represents lattice values for constants.
ConversionResult ConvertUTF8toUTF32(const UTF8 **sourceStart, const UTF8 *sourceEnd, UTF32 **targetStart, UTF32 *targetEnd, ConversionFlags flags)
Convert a partial UTF8 sequence to UTF32.
static UTF32 chopOneUTF32(StringRef &Buffer)
int foldCharSimple(int C)
Fold input unicode character according the Simple unicode case folding rules.
LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE bool empty() const
empty - Check if the string is empty.
ConversionResult ConvertUTF32toUTF8(const UTF32 **sourceStart, const UTF32 *sourceEnd, UTF8 **targetStart, UTF8 *targetEnd, ConversionFlags flags)
MutableArrayRef - Represent a mutable reference to an array (0 or more elements consecutively in memo...
static StringRef toUTF8(UTF32 C, MutableArrayRef< UTF8 > Storage)
uint32_t djbHash(StringRef Buffer, uint32_t H=5381)
The Bernstein hash function used by the DWARF accelerator tables.
LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE StringRef drop_front(size_t N=1) const
Return a StringRef equal to 'this' but with the first N elements dropped.
uint32_t caseFoldingDjbHash(StringRef Buffer, uint32_t H=5381)
Computes the Bernstein hash after folding the input according to the Dwarf 5 standard case folding ru...
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
LLVM_NODISCARD char front() const
front - Get the first character in the string.
#define LLVM_LIKELY(EXPR)
StringRef - Represent a constant reference to a string, i.e.