[llvm] Add ConstantRangeList::unionWith() and ::intersectWith() (PR #96547)
Haopeng Liu via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 25 09:14:21 PDT 2024
================
@@ -81,6 +81,86 @@ void ConstantRangeList::insert(const ConstantRange &NewRange) {
}
}
+ConstantRangeList
+ConstantRangeList::unionWith(const ConstantRangeList &CRL) const {
+ assert(getBitWidth() == CRL.getBitWidth() &&
+ "ConstantRangeList types don't agree!");
----------------
haopliu wrote:
Done.
https://github.com/llvm/llvm-project/pull/96547
More information about the llvm-commits
mailing list