[llvm] Add ConstantRangeList::unionWith() and ::intersectWith() (PR #96547)
Jan Voung via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 24 18:30:09 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!");
----------------
jvoung wrote:
nit: maybe "bitwidths" instead of "types" to be more specific?
https://github.com/llvm/llvm-project/pull/96547
More information about the llvm-commits
mailing list