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) {
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
ConstantRange Range(APInt(BitWidth, Low), APInt(BitWidth, High))
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
const_pointer const_iterator
LLVM Value Representation.
Holds a reference to an ordered array of UnicodeCharRange and allows to quickly check if a code point...
bool contains(uint32_t C) const
Returns true if the character set contains the Unicode code point C.
ArrayRef< UnicodeCharRange > CharRanges
UnicodeCharSet(CharRanges Ranges)
Constructs a UnicodeCharSet instance from an array of UnicodeCharRanges.
@ C
The default llvm calling convention, compatible with C.
bool operator<(uint32_t Value, UnicodeCharRange Range)
This is an optimization pass for GlobalISel generic memory operations.
raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
void write_hex(raw_ostream &S, uint64_t N, HexPrintStyle Style, std::optional< size_t > Width=std::nullopt)
Represents a closed range of Unicode code points [Lower, Upper].