Home
last modified time | relevance | path

Searched refs:IntRange (Results 1 – 3 of 3) 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()
80 const std::vector<IntRange> &UnreachableRanges);
204 const std::vector<IntRange> &UnreachableRanges) { in switchConvert()
249 IntRange Gap = { GapLow, GapHigh }; in switchConvert()
423 std::vector<IntRange> UnreachableRanges; in processSwitchInst()
437 IntRange R = { INT64_MIN, INT64_MAX }; in processSwitchInst()
443 IntRange &LastRange = UnreachableRanges.back(); in processSwitchInst()
[all …]
/external/clang/lib/Sema/
DSemaChecking.cpp6970 struct IntRange { struct
6977 IntRange(unsigned Width, bool NonNegative) in IntRange() argument
6982 static IntRange forBoolType() { in forBoolType() argument
6983 return IntRange(1, true); in forBoolType()
6987 static IntRange forValueOfType(ASTContext &C, QualType T) { in forValueOfType() argument
6993 static IntRange forValueOfCanonicalType(ASTContext &C, const Type *T) { in forValueOfCanonicalType() argument
7007 return IntRange(C.getIntWidth(QualType(T, 0)), false); in forValueOfCanonicalType()
7013 return IntRange(NumPositive, true/*NonNegative*/); in forValueOfCanonicalType()
7015 return IntRange(std::max(NumPositive + 1, NumNegative), in forValueOfCanonicalType()
7022 return IntRange(C.getIntWidth(QualType(T, 0)), BT->isUnsignedInteger()); in forValueOfCanonicalType()
[all …]
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.cpp2040 uint64_t IntRange = Range.getLimitedValue(UINT64_MAX/10); in handleJTSwitchCase() local
2042 if (IntTSize * 10 < IntRange * 4) in handleJTSwitchCase()