enum ConstantRange::PreferredRangeType
Description
If represented precisely, the result of some range operations may consist of multiple disjoint ranges. As only a single range may be returned, any range covering these disjoint ranges constitutes a valid result, but some may be more useful than others depending on context. The preferred range type specifies whether a range that is non-wrapping in the unsigned or signed domain, or has the smallest size, is preferred. If a signedness is preferred but all ranges are non-wrapping or all wrapping, then the smallest set size is preferred. If there are multiple smallest sets, any one of them may be returned.
Declared at: llvm/include/llvm/IR/ConstantRange.h:272
Enumerators
Name | Value | Comment |
---|---|---|
Smallest | 0 | |
Unsigned | 1 | |
Signed | 2 |