Home | History | Annotate | Download | only in Core

Lines Matching defs:From

27 /// A Range represents the closed range [from, to].  The caller must
28 /// guarantee that from <= to. Note that Range is immutable, so as not
34 Range(const llvm::APSInt &from, const llvm::APSInt &to)
35 : std::pair<const llvm::APSInt*, const llvm::APSInt*>(&from, &to) {
36 assert(from <= to);
41 const llvm::APSInt &From() const {
48 return &From() == &To() ? &From() : nullptr;
52 ID.AddPointer(&From());
89 /// Construct a new RangeSet representing '{ [from, to] }'.
90 RangeSet(Factory &F, const llvm::APSInt &from, const llvm::APSInt &to)
91 : ranges(F.add(F.getEmptySet(), Range(from, to))) {}
123 if (i->From() > Upper) {
136 newRanges = F.add(newRanges, Range(i->From(), BV.getValue(Upper)));
146 return ranges.begin()->From();
268 os << '[' << i->From().toString(10) << ", " << i->To().toString(10)