[PATCH] D102679: [llvm] Make Sequence reverse-iterable

Mehdi AMINI via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 20 16:17:52 PDT 2021


mehdi_amini added inline comments.


================
Comment at: llvm/include/llvm/ADT/Sequence.h:52
+    static T ItDiff(const T &A, const T &B) { return B - A; }
+    static difference_type Cmp(const T &It1, const T &It2) { return It2 - It1; }
+  };
----------------
Why all the upper case for the method here?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102679/new/

https://reviews.llvm.org/D102679



More information about the llvm-commits mailing list