[llvm] [EquivClasses] Shorten members_{begin,end} idiom (PR #134373)
Ramkumar Ramachandra via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 4 06:05:08 PDT 2025
================
@@ -184,6 +185,14 @@ class EquivalenceClasses {
return member_iterator(nullptr);
}
+ iterator_range<member_iterator> members(const ECValue &ECV) const {
+ return make_range(member_begin(ECV), member_end());
+ }
+
+ iterator_range<member_iterator> members(const ElemTy &V) const {
----------------
artagnon wrote:
Yeah, it's used in LAA.
https://github.com/llvm/llvm-project/pull/134373
More information about the llvm-commits
mailing list