Home
last modified time | relevance | path

Searched refs:IntRange (Results 1 – 2 of 2) sorted by relevance

/openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/
H A DLowerSwitch.cpp54 struct IntRange { struct
62 bool IsInRanges(const IntRange &R, const std::vector<IntRange> &Ranges) { in IsInRanges()
69 Ranges, R, [](IntRange A, IntRange B) { return A.High.slt(B.High); }); in IsInRanges()
233 const std::vector<IntRange> &UnreachableRanges) { in SwitchConvert()
276 IntRange Gap = {GapLow, GapHigh}; in SwitchConvert()
432 std::vector<IntRange> UnreachableRanges; in ProcessSwitchInst()
441 IntRange R = {SignedMin, SignedMax}; in ProcessSwitchInst()
447 IntRange &LastRange = UnreachableRanges.back(); in ProcessSwitchInst()
457 IntRange R = {High + 1, SignedMax}; in ProcessSwitchInst()
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DSemaChecking.cpp12286 struct IntRange { struct
12296 IntRange(unsigned Width, bool NonNegative) in IntRange() function
12305 static IntRange forBoolType() { in forBoolType() argument
12306 return IntRange(1, true); in forBoolType()
12310 static IntRange forValueOfType(ASTContext &C, QualType T) { in forValueOfType() argument
12316 static IntRange forValueOfCanonicalType(ASTContext &C, const Type *T) { in forValueOfCanonicalType() argument
12336 return IntRange(C.getIntWidth(QualType(T, 0)), in forValueOfCanonicalType()
12344 return IntRange(NumPositive, true/*NonNegative*/); in forValueOfCanonicalType()
12346 return IntRange(std::max(NumPositive + 1, NumNegative), in forValueOfCanonicalType()
12351 return IntRange(EIT->getNumBits(), EIT->isUnsigned()); in forValueOfCanonicalType()
[all …]