Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/Utils/
DLowerSwitch.cpp35 struct IntRange { struct
39 static bool IsInRanges(const IntRange &R, in IsInRanges()
40 const std::vector<IntRange> &Ranges) { in IsInRanges()
48 [](const IntRange &A, const IntRange &B) { return A.High < B.High; }); in IsInRanges()
86 const std::vector<IntRange> &UnreachableRanges);
210 const std::vector<IntRange> &UnreachableRanges) { in switchConvert()
255 IntRange Gap = { GapLow, GapHigh }; in switchConvert()
429 std::vector<IntRange> UnreachableRanges; in processSwitchInst()
443 IntRange R = { INT64_MIN, INT64_MAX }; in processSwitchInst()
449 IntRange &LastRange = UnreachableRanges.back(); in processSwitchInst()
[all …]
/external/clang/lib/Sema/
DSemaChecking.cpp6076 struct IntRange { struct
6083 IntRange(unsigned Width, bool NonNegative) in IntRange() argument
6088 static IntRange forBoolType() { in forBoolType() argument
6089 return IntRange(1, true); in forBoolType()
6093 static IntRange forValueOfType(ASTContext &C, QualType T) { in forValueOfType() argument
6099 static IntRange forValueOfCanonicalType(ASTContext &C, const Type *T) { in forValueOfCanonicalType() argument
6113 return IntRange(C.getIntWidth(QualType(T, 0)), false); in forValueOfCanonicalType()
6119 return IntRange(NumPositive, true/*NonNegative*/); in forValueOfCanonicalType()
6121 return IntRange(std::max(NumPositive + 1, NumNegative), in forValueOfCanonicalType()
6128 return IntRange(C.getIntWidth(QualType(T, 0)), BT->isUnsignedInteger()); in forValueOfCanonicalType()
[all …]