Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLowerSwitch.cpp53 struct IntRange { struct
61 bool IsInRanges(const IntRange &R, const std::vector<IntRange> &Ranges) { in IsInRanges()
68 Ranges, R, [](IntRange A, IntRange B) { return A.High.slt(B.High); }); in IsInRanges()
232 const std::vector<IntRange> &UnreachableRanges) { in SwitchConvert()
275 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()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaChecking.cpp9254 struct IntRange { struct
9264 IntRange(unsigned Width, bool NonNegative) in IntRange() argument
9273 static IntRange forBoolType() { in forBoolType() argument
9274 return IntRange(1, true); in forBoolType()
9278 static IntRange forValueOfType(ASTContext &C, QualType T) { in forValueOfType() argument
9284 static IntRange forValueOfCanonicalType(ASTContext &C, const Type *T) { in forValueOfCanonicalType() argument
9304 return IntRange(C.getIntWidth(QualType(T, 0)), in forValueOfCanonicalType()
9312 return IntRange(NumPositive, true/*NonNegative*/); in forValueOfCanonicalType()
9314 return IntRange(std::max(NumPositive + 1, NumNegative), in forValueOfCanonicalType()
9319 return IntRange(EIT->getNumBits(), EIT->isUnsigned()); in forValueOfCanonicalType()
[all …]