Go to the documentation of this file.
8 #ifndef LLVM_SUPPORT_UNICODECHARRANGES_H
9 #define LLVM_SUPPORT_UNICODECHARRANGES_H
17 #define DEBUG_TYPE "unicode"
65 return std::binary_search(Ranges.
begin(), Ranges.
end(),
C);
71 bool rangesAreValid()
const {
75 if (
I != Ranges.
begin() && Prev >=
I->Lower) {
78 LLVM_DEBUG(
dbgs() <<
" should be less than succeeding lower bound 0x");
82 if (
I->Upper <
I->Lower) {
101 #undef DEBUG_TYPE // "unicode"
103 #endif // LLVM_SUPPORT_UNICODECHARRANGES_H
UnicodeCharSet(CharRanges Ranges)
Constructs a UnicodeCharSet instance from an array of UnicodeCharRanges.
This class represents lattice values for constants.
const_pointer const_iterator
raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
(vector float) vec_cmpeq(*A, *B) C
ArrayRef< UnicodeCharRange > CharRanges
Represents a closed range of Unicode code points [Lower, Upper].
Holds a reference to an ordered array of UnicodeCharRange and allows to quickly check if a code point...
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
bool contains(uint32_t C) const
Returns true if the character set contains the Unicode code point C.
void write_hex(raw_ostream &S, uint64_t N, HexPrintStyle Style, Optional< size_t > Width=None)
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
LLVM Value Representation.
bool operator<(uint32_t Value, UnicodeCharRange Range)